CN107852597B - Method and device for discovering terminal device - Google Patents

Method and device for discovering terminal device Download PDF

Info

Publication number
CN107852597B
CN107852597B CN201580081743.9A CN201580081743A CN107852597B CN 107852597 B CN107852597 B CN 107852597B CN 201580081743 A CN201580081743 A CN 201580081743A CN 107852597 B CN107852597 B CN 107852597B
Authority
CN
China
Prior art keywords
terminal device
application identifier
discovery filter
code word
proximity service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201580081743.9A
Other languages
Chinese (zh)
Other versions
CN107852597A (en
Inventor
何岳
金辉
欧阳国威
衣强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN107852597A publication Critical patent/CN107852597A/en
Application granted granted Critical
Publication of CN107852597B publication Critical patent/CN107852597B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data

Landscapes

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

Abstract

The invention provides a method and equipment for discovering terminal equipment, wherein the method comprises the following steps: a proximity service entity receives a first request message sent by a first terminal device, wherein the first request message carries a device identifier, a first application identifier and a first indication of the first terminal device; when the proximity service entity does not store the valid code word corresponding to the application identifier, the proximity service entity uses the device identifier to record the first request message of the first terminal device for the application identifier; and after obtaining the effective code word corresponding to the application identifier, the proximity service entity sends a first discovery filter generated by using the effective code word to the first terminal device, so that the first terminal device discovers a second terminal device by using the first discovery filter.

Description

Method and device for discovering terminal device
Technical Field
The invention relates to the field of internet, in particular to a method and equipment for discovering terminal equipment.
Background
In a traditional mobile network, a data communication path between terminal devices must be implemented through a core network, and even if the terminal devices are in a close distance, data transmission is still required through the core network when the data transmission is required, so that a large amount of bandwidth is occupied, the bandwidth requirement is high, and the transmission efficiency is low. At present, a Proximity Services (ProSe) technology is generally adopted, and the technology mainly solves the problem that data exchange can be directly performed between terminal devices at a close distance without a network on the premise that the terminal devices can be mutually discovered, so that the communication efficiency is effectively improved.
In the prior art, there are mainly two broadcast processes and two monitoring processes. In the broadcasting process: the broadcast terminal device needs to send its own proximity service application identifier to its own proximity service application entity, and after determining that the broadcast terminal device has the right to broadcast the proximity service application identifier according to the context of the terminal device obtained from a Home Subscriber Server (HSS), the proximity service application entity correspondingly generates a proximity service application codeword, and then returns the proximity service application codeword to the broadcast terminal device, so that the broadcast terminal device can broadcast its own proximity service application codeword. Monitoring process: when the monitoring terminal device wants to monitor the broadcast terminal device, a discovery request is sent to the proximity service application entity to which the monitoring terminal device belongs, so that the proximity service application entity queries a proximity service application code word and a proximity service application Mask (Mask) corresponding to a proximity service application identifier according to the terminal device context of the broadcast terminal device acquired from the HSS, generates a corresponding discovery filter by using the proximity service application code word and the proximity service application Mask, and returns the discovery filter to the monitoring terminal device, so that the monitoring terminal device can monitor the broadcast terminal device by using the discovery filter.
However, if the broadcast terminal device applies for broadcast after the monitoring terminal device applies for monitoring, the monitoring terminal device cannot monitor the broadcast terminal device.
Disclosure of Invention
The invention provides a method and equipment for discovering terminal equipment, which can solve the problem that in the prior art, broadcasting equipment can not apply for broadcasting after monitoring equipment applies for monitoring, and the monitoring equipment can still monitor the broadcasting equipment.
A first aspect of an embodiment of the present invention provides a method for discovering a terminal device, where the method includes:
a proximity service entity receives a first request message sent by a first terminal device, wherein the first request message carries a device identifier of the first device, a first application identifier and a first indication, and the first indication is used for requesting a first discovery filter;
when the proximity service entity does not store the valid code word corresponding to the first application identifier, the proximity service entity records the first request message for the first application identifier by using the device identifier;
and after obtaining the effective code word corresponding to the first application identifier, the proximity service entity sends a first discovery filter generated by using the effective code word to the first terminal device.
With reference to the first aspect, in a first implementation manner of the first aspect of the present invention, before the sending, to the first terminal device, the first discovery filter generated by using the valid codeword, the method further includes:
and the proximity service entity sends a first timer to the first terminal device, wherein the first timer is used for indicating and recording the validity period of the first request message for the first application identifier. By timing the validity period of the event, unnecessary responses close to the service entity can be reduced, and other terminal devices in need can be continuously served.
With reference to the first implementation manner of the first aspect, in a second implementation manner of the first aspect of the present invention, the sending, to the first terminal device, the first discovery filter generated according to the valid codeword includes:
after the proximity service entity obtains the valid code word corresponding to the first application identifier and when the first timer is not timed out, the proximity service entity sends the first discovery filter to the first terminal device.
With reference to the first or second implementation manner of the first aspect, in a third implementation manner of the first aspect of the present invention, before sending the first discovery filter generated by using the valid codeword to the first terminal device, the method further includes:
the proximity service entity sends a second discovery filter to the first terminal device, where the second discovery filter includes a first codeword of the second terminal device and a first mask of the second terminal device, and each bit in the first codeword is 1;
the sending the first discovery filter generated according to the valid codeword to the first terminal device includes:
if the proximity service entity obtains the valid codeword corresponding to the first application identifier and the first timer is not overtime, the proximity service entity sends the first discovery filter obtained by updating the second discovery filter by using the valid codeword to the first terminal device;
the first discovery filter is a discovery filter obtained after the proximity service entity updates the second discovery filter according to the valid code word after obtaining the valid code word.
The proximity service entity realizes that the second discovery filter is modified after obtaining the valid code words subsequently by setting the second discovery filter, thereby obtaining the valid first discovery filter, and enabling the first terminal device to obtain the valid first discovery filter.
A second aspect of the present invention provides a method for discovering a terminal device, the method comprising:
a proximity service entity receives a first request message sent by first terminal equipment, wherein the first request message carries a first application identifier;
when the proximity service entity does not store the effective code word corresponding to the first application identifier, acquiring at least one sub-application identifier according to the first application identifier, and configuring a discovery filter for the at least one sub-application identifier;
and the proximity service entity sends a first message to the first terminal device, wherein the first message carries the discovery filter and the at least one sub-application identifier.
Optionally, the at least one application identifier includes a partial tag in the first application identifier. The method and the device can realize that the corresponding discovery filter can be provided for the first terminal equipment through the sub-application identifier of the first application identifier on the premise that the corresponding effective code word cannot be found through the first application identifier.
A third aspect of the present invention provides a proximity service entity, comprising:
a transmission module, configured to receive a first request message sent by a first terminal device, where the first request message carries a device identifier of the first terminal device, a first application identifier, and a first indication, and the first indication is used to request a first discovery filter;
a processing module, configured to record the first request message for the first application identifier by using the device identifier when the proximity service entity does not store the valid codeword corresponding to the first application identifier;
the transmission module is further configured to send the first discovery filter generated by the processing module using the valid codeword to the first terminal device after obtaining the valid codeword corresponding to the first application identifier.
With reference to the third aspect, in a first implementation manner of the third aspect of the present invention, the transmission module is further configured to:
before sending the first discovery filter generated by the processing module by using the valid code word to the first terminal device, sending a first timer to the first terminal device, where the first timer is used to indicate a validity period of recording the first request message for the first application identifier.
With reference to the first implementation manner of the third aspect, in a second implementation manner of the third aspect of the present invention, the transmission module is specifically configured to:
and after the valid code word corresponding to the first application identifier is obtained and the first timer is not timed out, sending the first discovery filter to the first terminal equipment.
With reference to the third aspect or the first implementation manner of the third aspect, in a third implementation manner of the third aspect of the present invention, the transmission module is further configured to:
before sending a first discovery filter generated by the processing module by using the valid code word to the first terminal device, sending a second discovery filter to the first terminal device, where the second discovery filter includes a first code word of the second terminal device, and each bit of the first code word is 1;
and if the proximity service entity obtains the valid code word corresponding to the first application identifier and the first timer is not overtime, sending the first discovery filter obtained by updating the second discovery filter by the processing module by using the valid code word to the first terminal device.
A fourth aspect of the present invention provides a proximity service entity, including:
the transmission module is used for receiving a first request message sent by first terminal equipment, wherein the first request message carries a first application identifier;
a processing module, configured to, when the proximity service entity does not store a valid codeword corresponding to the application identifier, obtain at least one sub-application identifier according to the first application identifier, and configure a discovery filter for the at least one sub-application identifier;
the transmission module is further configured to send a first message to the first terminal device, where the first message carries the discovery filter and the at least one sub-application identifier.
With reference to the fourth aspect, in a first implementation manner of the fourth aspect of the present invention, the at least one application identifier includes a partial tag in the first application identifier.
According to the technical scheme, when a first discovery request which is sent by a first terminal device and carries a first indication is received and the effective code word is not stored, the first request message for the first application identifier is recorded, and after the effective code word is obtained subsequently, a first discovery filter is generated according to the effective code word and the device identifier and is returned to the first terminal device. Therefore, no matter what monitoring process is applied by the first terminal equipment at any time, the approach service entity can return an effective first discovery filter to the first terminal equipment at the first time after obtaining the effective code word, the problem that the first terminal equipment cannot monitor the second terminal equipment which starts to apply for broadcasting after the first discovery request is initiated is effectively avoided, even if the first equipment applies for monitoring the second terminal equipment before, and the user experience is improved.
Drawings
Fig. 1 is a flowchart of a method for discovering a terminal device according to an embodiment of the present invention;
fig. 2 is a flowchart of a specific application scenario of a method for discovering a terminal device according to an embodiment of the present invention;
fig. 3 is another flowchart of a method for discovering a terminal device according to an embodiment of the present invention;
FIG. 3-1 is a schematic structural diagram of an application identifier in an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a proximity service entity according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another proximity service entity according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another proximity service entity according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another proximity service entity according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, rather than all embodiments, and all other embodiments obtained by those skilled in the art without any creative work based on the embodiments of the present invention belong to the protection scope of the present invention.
The terms "first," "second," and the like in the description and in the claims, and in the drawings described above, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprise," "include," and "have," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules expressly listed, but may include other steps or modules not expressly listed or inherent to such process, method, article, or apparatus, the division of modules herein shown is merely a logical division and may be implemented in a practical application in a different manner, such that multiple modules may be combined or integrated into another system or certain features may be omitted or not implemented, and such that mutual or direct coupling or communicative coupling between the modules shown or discussed may be through interfaces, and indirect coupling or communicative coupling between the modules may be electrical or other similar, are not intended to be limiting herein. Moreover, the modules or sub-modules described as separate components may or may not be physically separated, may or may not be physical modules, or may not be separated into multiple circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiment of the present invention.
The embodiment of the invention provides a method and equipment for discovering terminal equipment, which are used in the field of wireless communication, such as peer-to-peer networks. The terminal devices presented herein may be P2P devices, D2D devices, and specifically may be devices with wireless access capability such as vehicle-mounted devices, communication terminals, mobile devices, and personal digital assistants, and the method for discovering the terminal devices involves interaction between at least two terminal devices, where a first terminal device is a device requesting monitoring, and a second terminal device is a device broadcasting and being monitored by the first terminal device. The interactive signal between the first terminal device and the second terminal device can realize peer-to-peer communication in a short distance without passing through a network side. In the prior art, only after the broadcasting equipment successfully applies for the broadcasting process, the broadcasting equipment can acquire the effective code word corresponding to the application identifier from the network side, that is, the monitoring equipment applies for the monitoring process (that is, the monitoring process occurs after the broadcasting process under a general condition) only after the effective code word is successfully allocated, and then the discovery filter configured by the network side according to the equipment identifier and the effective code word can be acquired from the network side.
The discovery filter mainly comprises a ProSe App Code and a Mask, the filtering process is that the first terminal device performs bitwise AND calculation by using the monitored ProSe App Code and Mask, and if the calculated result is the same as the ProSe App Code in the discovery filter, the ProSe App Code is shown as the interested ProSe App Code.
Embodiments of the present invention are directed to solve a problem of how to acquire information broadcasted by a second terminal device by a first terminal device when the second terminal device applies for a broadcast process after the first terminal device applies for a monitoring process.
In order to solve the above technical problems, the embodiment of the present invention mainly adopts two schemes:
1. expanding a listen request message initiated by a first terminal device
Specifically, the monitoring request message carries request information, which may be information like a subscription request indication, and is used to indicate a desire of the first terminal device to obtain an effective discovery filter from the proximity service entity, and to enable the proximity service entity to record an event of the first request message of the application identifier of the second terminal device by using the device identifier of the first terminal device when the proximity service entity does not store an effective codeword corresponding to the application identifier and the first request message includes the request information (specifically, by establishing a corresponding relationship between the device identifier and the application identifier, which is used to indicate that the first terminal device has initiated a monitoring procedure to the second terminal device within an effective time but does not obtain an effective discovery filter), and after the proximity service entity obtains an effective codeword, the discovery filter corresponding to the valid codeword is sent to the first terminal device, so that the first terminal device can perform discovery service using the discovery filter.
2. Obtaining discovery filters by matching partial sub-application identifications
Specifically, after the first terminal device initiates the monitoring process, when the proximity service entity does not store the valid codeword corresponding to the application identifier of the second terminal device, the proximity service entity extracts at least one sub-application identifier from the application identifier, and sends a discovery filter configured for the at least one sub-application identifier to the first terminal device, so that the first terminal device can perform discovery service by using the discovery filter.
Referring to fig. 1, a method for discovering a terminal device in an embodiment of the present invention is described below from the perspective of a proximity service entity, and the following illustrates the method for discovering a terminal device from the perspective of a proximity service entity, where the embodiment of the present invention includes:
101. the method comprises the steps that a proximity service entity receives a first request message sent by first terminal equipment;
the first request message carries an equipment identifier of the first equipment, a first Application identifier and a first indication, where the equipment identifier of the first terminal equipment may be any identifier that can Identify the first terminal equipment, such as an International Mobile Subscriber Identity (IMSI), the first Application identifier is an Application identifier of the second terminal equipment, and the Application identifier of the second terminal equipment may be a proximity services Application identity (proximity App ID), and the like.
The first indication is used for requesting the first discovery filter, and may be a subscription request indication (subscribe indicator), or may be another newly defined message or an extended message, and a specific type of the first indication is not limited herein. In addition, the first discovery filter is a discovery filter that is sent to the first terminal device after the proximity service entity obtains the valid codeword corresponding to the application identifier (the second terminal device has applied for a broadcast process).
102. When the proximity service entity does not store the valid code word corresponding to the first application identifier, the proximity service entity records the first request message for the first application identifier by using the device identifier;
it can be understood that, since the monitoring procedure occurs only after the broadcast procedure, that is, the monitoring procedure indicates that the second terminal device does not apply for the broadcast procedure, the proximity service entity does not configure a valid codeword for the second terminal device. Therefore, the first request message is extended by adding the first indication to the first request message to indicate that whether the proximity service entity stores the valid codeword or not, the first terminal device wants to obtain the first discovery filter subsequently, and when the proximity service entity determines that the valid codeword corresponding to the first application identifier is not stored and the first request message includes the first indication, the proximity service entity records an event of the first request message of the first terminal device to the first application identifier by using the device identifier.
In addition, the proximity service entity uses the device identifier to record the first request message for the first application identifier, and the specific implementation manner may be: the first application identifier and the device identifier are recorded correspondingly, which may indicate that the first terminal device has initiated the first request message to the second terminal device corresponding to the first application identifier, but has not successfully obtained the valid filter.
103. And after obtaining the effective code word corresponding to the application identifier, the proximity service entity sends a first discovery filter generated by using the effective code word to the first terminal device.
In the embodiment of the invention, when a first discovery request carrying a first indication sent by a first terminal device is received and the effective code word is not stored, the first request message for the first application identifier is recorded, and after the effective code word is obtained subsequently, a first discovery filter is generated according to the effective code word and the device identifier and is returned to the first terminal device. Therefore, no matter what monitoring process is applied by the first terminal equipment at any time, the approach service entity can return an effective first discovery filter to the first terminal equipment at the first time after obtaining the effective code word, the problem that the first terminal equipment cannot monitor the second terminal equipment which starts to apply for broadcasting after the first discovery request is initiated is effectively avoided, even if the first equipment applies for monitoring the second terminal equipment before, and the user experience is improved.
Optionally, on the basis of the embodiment corresponding to fig. 1, in a first optional embodiment of the present invention, before sending the first discovery filter generated by using the valid codeword to the first terminal device, the method further includes:
the proximity service entity sends a first timer to the first terminal device, where the first timer is used to instruct and record the validity period of the first request message for the first application identifier, that is, the validity period indicates that within the validity period specified by the timer, as long as the first terminal device initiates a monitoring request to the second terminal device, the first terminal device will eventually receive a first discovery filter returned by the proximity service entity, and thus monitoring of the second terminal device can be achieved, and if the first certain period is overtime, the first terminal device needs to send the first request message again to obtain the opportunity of monitoring the second terminal device next time.
According to this optional embodiment, it can be seen that the recorded event is valid only within the valid duration of the first timer, and the first terminal device may no longer need to monitor the second terminal device after a period of time, and at this time, the event needs to be cleared, so as to prevent the proximity service entity from sending the first discovery filter to the first terminal device after obtaining a valid codeword, so that by the mechanism for temporarily retaining the event, unnecessary responses on the network side can be reduced to a certain extent, and the network side can continue to serve other terminal devices that have needs.
Optionally, on the basis of the first embodiment, in a second optional embodiment of the embodiments of the present invention, the sending, to the first terminal device, the first discovery filter generated according to the valid codeword includes:
after the proximity service entity obtains the valid code word corresponding to the first application identifier and when the first timer is not timed out, the proximity service entity sends the first discovery filter to the first terminal device.
Optionally, on the basis of the embodiment corresponding to fig. 1 or the first optional embodiment, in a third optional embodiment of the present invention, before sending the first discovery filter generated by using the valid codeword to the first terminal device, the method further includes:
the proximity service entity sends a second discovery filter to the first terminal device, where the second discovery filter includes a first Code word of the second terminal device, and each bit in the first Code word is 1, that is, the second discovery filter indicates that the ProSe App Code in the second discovery filter is a Code of all 1, and is used to indicate that there is no valid ProSe App Code for the moment.
The sending the first discovery filter generated according to the valid codeword to the first terminal device includes:
if the proximity service entity obtains the valid codeword corresponding to the first application identifier and the first timer is not overtime, the proximity service entity sends the first discovery filter obtained by updating the second discovery filter by using the valid codeword to the first terminal device. The first discovery filter is a discovery filter obtained after the proximity service entity updates the second discovery filter according to the valid code word after obtaining the valid code word. That is, before the first timer times out, if the valid codeword is obtained, the proximity service entity triggers and updates the process of the second discovery filter according to the event, so as to obtain the first discovery filter.
It can be understood that, since the proximity service entity can only modify the existing context, after the proximity service entity records the event, it needs to return a reserved second discovery filter (which can be understood as an invalid discovery filter) to the first terminal device, after obtaining a valid codeword, update the context of the second terminal device, and then update the reserved second discovery filter to obtain the valid first discovery filter, so that the first terminal device can discover the second terminal device by using the first discovery filter.
For convenience of understanding, a detailed description of the embodiments of the present invention is provided in a specific application scenario, in which a first terminal device and a second terminal device belong to different proximity service entities, respectively, and a first terminal device UE1 corresponds to a first proximity service entity Prose Function1, and a second terminal device UE2 corresponds to a second proximity service entity Prose Function2, with reference to fig. 2, another embodiment of the present invention includes:
201. the UE1 sends a Discovery Request to the Prose Function 1; the discovery request carries the device identifier (UE identity) of the UE1, the application identifier (probe App ID) of the UE2, and a subscription request Indicator (subscription Indicator).
202. The method includes that a Prose Function1 sends a Monitor Request to a Prose Function2, where the Monitor Request carries a device identifier of the UE1, an application identifier of the UE2, and a first indication, and the first indication is used to indicate a will of the UE1 to obtain Discovery Filter;
203. when the sense Function2 does not store a valid codeword corresponding to the application identifier and the monitoring request includes the first indication, recording an event of the discovery request of the UE1 to the application identifier by using the device identifier;
204. the Prose Function2 obtains the valid code word corresponding to the application identifier, and sends the Monitor Response carrying the valid code word and the application identifier to the Prose Function 1;
205. the Prose Function1 generates Discovery Filter according to the application identifier and the valid codeword in the monitoring response;
206. the Prose Function1 sends the Discovery Response carrying Discovery Filter to the UE 1;
207. the UE1 discovers UE2 with Discovery Filter and obtains broadcast information for UE 2.
Referring to fig. 3, a method for discovering a terminal device in an embodiment of the present invention is described below from the perspective of matching only part of application identifiers, where the method includes:
301. the method comprises the steps that a proximity service entity receives a first request message sent by first terminal equipment;
the first request message carries an application identifier of the second terminal device.
302. When the proximity service entity does not store the effective code word corresponding to the application identifier, acquiring at least one sub-application identifier according to the application identifier, and configuring a discovery filter for the at least one sub-application identifier;
it is understood that the above-mentioned application ID (Prose APP ID) includes a plurality of sub-application IDs (Subset of Prose APP IDs), and a specific structure of the application ID is shown in fig. 3-1, where the Prose APP ID is Public Land Mobile Network (PLMN) ID + Prose APP ID name, and the sub-of-Prose APP ID includes a partial tag (Label).
For example, a mail addressed to beijing may not know which city the mail is addressed to because the address is unclear, but if the name of the area governed by beijing, such as the hai lake area, is extracted, the address of the mail may be locked to beijing through the hai lake area, and thus, the name of the area of the upper layer to which the mail belongs may be inferred through the small area name.
303. And the proximity service entity sends a first message to the first terminal device, wherein the first message carries the discovery filter and the at least one sub-application identifier.
Optionally, the at least one sub-application identifier may also be placed in the discovery filter, where the at least one application identifier includes a partial tag in the application identifier.
In the embodiment of the present invention, when the proximity service entity does not store the effective codeword, the proximity service entity extracts the at least one sub-application identifier from the application identifier, and configures a discovery filter for the at least one sub-application identifier, so that on the premise that a corresponding effective codeword cannot be found by using the application identifier, the sub-application identifier of the application identifier can be changed to provide a corresponding discovery filter for the first terminal device, so that the first terminal device can discover the second terminal device according to the discovery filter.
Referring to fig. 4, the above describes a method for discovering a terminal device in an embodiment of the present invention, and a proximity service entity for performing the method is described below, and a third aspect of the present invention provides a proximity service entity, where the proximity service entity 40 includes:
a transmission module 401, configured to receive a first request message sent by a first terminal device, where the first request message carries a device identifier of the first terminal device, a first application identifier, and a first indication, and the first indication is used to request a first discovery filter;
a processing module 402, configured to record the first request message for the first application identifier by using the device identifier when the proximity service entity does not store the valid codeword corresponding to the first application identifier;
the transmission module 401 is further configured to send the first discovery filter generated by the processing module 402 using the valid code word to the first terminal device after obtaining the valid code word corresponding to the first application identifier.
In the embodiment of the present invention, when the transmission module 401 receives a first discovery request carrying a first indication, and when the proximity service entity does not store the valid codeword, the processing module 402 records the first request message for the first application identifier, and after obtaining the valid codeword subsequently, generates a first discovery filter according to the valid codeword and the device identifier, and returns the first discovery filter to the first terminal device through the transmission module 401. Therefore, no matter what monitoring process is applied by the first terminal equipment at any time, the approach service entity can return an effective first discovery filter to the first terminal equipment at the first time after obtaining the effective code word, the problem that the first terminal equipment cannot monitor the second terminal equipment which starts to apply for broadcasting after the first discovery request is initiated is effectively avoided, even if the first equipment applies for monitoring the second terminal equipment before, and the user experience is improved.
Optionally, on the basis of the embodiment corresponding to fig. 4, in a first optional embodiment of the present invention, the transmission module 401 is further configured to:
sending a first timer to the first terminal device before sending the first discovery filter generated by the processing module 402 using the valid codeword to the first terminal device, where the first timer is used to indicate a validity period of recording the first request message for the first application identifier.
Optionally, on the basis of the first optional embodiment, in a second optional embodiment of the present invention, the transmission module 401 is specifically configured to:
and after the valid code word corresponding to the first application identifier is obtained and the first timer is not timed out, sending the first discovery filter to the first terminal equipment.
Optionally, on the basis of the embodiment corresponding to fig. 4 or the first optional embodiment, in a third optional embodiment of the present invention, the transmission module 401 is further configured to:
before sending the first discovery filter generated by the processing module 402 using the valid codeword to the first terminal device, sending a second discovery filter to the first terminal device, where the second discovery filter includes a first codeword of the second terminal device, and each bit of the first codeword is 1;
if the proximity service entity obtains the valid codeword corresponding to the first application identifier and the first timer is not overtime, the first discovery filter obtained by updating the second discovery filter by the processing module 402 using the valid codeword is sent to the first terminal device.
Referring to fig. 5, a proximity service entity, the proximity service entity 50 includes:
a transmission module 501, configured to receive a first request message sent by a first terminal device, where the first request message carries a first application identifier;
a processing module 502, configured to, when the proximity service entity does not store a valid codeword corresponding to the application identifier, obtain at least one sub-application identifier according to the first application identifier, and configure a discovery filter for the at least one sub-application identifier;
the transmission module 501 is further configured to send a first message to the first terminal device, where the first message carries the discovery filter and the at least one sub-application identifier.
Optionally, the at least one application identifier includes a partial tag in the first application identifier.
In this embodiment of the present invention, when the proximity service entity does not store the valid codeword, the processing module 502 extracts the at least one sub-application identifier from the application identifier, and configures a discovery filter for the at least one sub-application identifier, so that on the premise that a corresponding valid codeword cannot be found by using the application identifier, the corresponding discovery filter can also be provided for the first terminal device by changing the sub-application identifier of the application identifier, so that the first terminal device can discover the second terminal device according to the discovery filter.
The present invention also provides a computer storage medium storing a program which, when executed, includes some or all of the steps of the method for discovering a terminal device.
The present invention also provides a computer storage medium storing a program which, when executed, comprises some or all of the steps of the above-mentioned proximity service entity performing a method of discovering a terminal device.
Fig. 6 is another schematic structural diagram of the terminal device 60 according to the embodiment of the present invention. The terminal device 60 may include at least one network interface or other communication interface, at least one receiver 601, at least one transmitter 602, at least one processor 603, and a memory 604 to enable connection communication between these devices, a communication connection between the system gateway and at least one other network element via at least one network interface (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
The memory 604 may include a read-only memory and a Random Access Memory (RAM), and may provide instructions and data to the processor 603, and a portion of the memory 604 may include a high-speed Random Access Memory (RAM) or a non-volatile memory (non-volatile memory).
The memory 604 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof:
and (3) operating instructions: including various operational instructions for performing various operations.
Operating the system: including various system programs for implementing various basic services and for handling hardware-based tasks.
In the embodiment of the present invention, the processor 603 performs the following operations by calling the operation instruction (which may be stored in the operating system) stored in the memory 604:
receiving, by a receiver 601, a first request message sent by a first terminal device, where the first request message carries a device identifier of the first terminal device, a first application identifier, and a first indication, and the first indication is used to request a first discovery filter;
when the proximity service entity does not store the effective code word corresponding to the first application identifier, recording the first request message of the first application identifier by using the equipment identifier;
after obtaining the valid codeword corresponding to the first application identifier, the transmitter 602 sends the first discovery filter generated by using the valid codeword to the first terminal device.
Optionally, before the first discovery filter generated by using the valid codeword is sent to the first terminal device by the transmitter 602, a first timer is sent to the first terminal device by the transmitter 602, where the first timer is used to indicate a validity period for recording the first request message for the first application identifier.
In some embodiments, the processor 603 may further perform the following steps:
after obtaining the valid codeword corresponding to the first application identifier, and when the first timer is not timed out, the transmitter 602 sends the first discovery filter to the first terminal device.
In some embodiments, the processor 603 may further perform the following steps:
sending a second discovery filter to the first terminal device before sending, by a transmitter 602, the first discovery filter generated by using the valid codeword to the first terminal device, where the second discovery filter includes a first codeword of the second terminal device, and each bit of the first codeword is 1;
if the proximity service entity obtains the valid codeword corresponding to the first application identifier and the first timer is not overtime, the transmitter 602 sends the first discovery filter obtained by updating the second discovery filter with the valid codeword to the first terminal device.
Fig. 7 is another schematic structural diagram of the terminal device 70 according to the embodiment of the present invention. The terminal equipment 70 may include at least one network interface or other communication interface, at least one receiver 701, at least one transmitter 702, at least one processor 703 and memory 704 to enable connectivity communications between these devices, a communication connection between the system gateway and at least one other network element through at least one network interface (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
The memory 704 may include both read-only memory and Random-access memory, and may provide instructions and data to the processor 703, and a portion of the memory 704 may include high-speed Random-access memory (RAM) or non-volatile memory (non-volatile memory).
The memory 704 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof:
and (3) operating instructions: including various operational instructions for performing various operations.
Operating the system: including various system programs for implementing various basic services and for handling hardware-based tasks.
In the embodiment of the present invention, the processor 703 performs the following operations by calling an operation instruction (which may be stored in an operating system) stored in the memory 704:
receiving a first request message sent by a first terminal device through a receiver 701, wherein the first request message carries a first application identifier;
when the proximity service entity does not store the valid code word corresponding to the application identifier, acquiring at least one sub-application identifier according to the first application identifier, and configuring a discovery filter for the at least one sub-application identifier;
and sending a first message to the first terminal device via a transmitter 702, the first message carrying the discovery filter and the at least one sub-application identity.
Optionally, the at least one application identifier includes a partial tag in the first application identifier.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The method and the device for discovering the terminal device provided by the invention are described in detail, and the principle and the implementation mode of the invention are explained by applying a specific example, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (18)

1. A method of discovering a terminal device, the method comprising:
a proximity service entity receives a first request message sent by a first terminal device, wherein the first request message carries a device identifier, a first application identifier and a first indication of the first terminal device, and the first indication is used for requesting a first discovery filter;
when the proximity service entity does not store the valid code word corresponding to the first application identifier, the proximity service entity records the first request message for the first application identifier by using the device identifier;
and after obtaining the effective code word corresponding to the first application identifier, the proximity service entity sends the first discovery filter generated by using the effective code word to the first terminal device.
2. The method of claim 1, wherein prior to sending the first discovery filter generated using the valid codeword to the first terminal device, the method further comprises:
and the proximity service entity sends a first timer to the first terminal device, wherein the first timer is used for indicating and recording the validity period of the first request message for the first application identifier.
3. The method of claim 2, wherein sending the first discovery filter generated using the valid codeword to the first terminal device comprises:
after the proximity service entity obtains the valid code word corresponding to the first application identifier and when the first timer is not timed out, the proximity service entity sends the first discovery filter to the first terminal device.
4. The method of claim 1 or 2, wherein before sending the first discovery filter generated using the valid codeword to the first terminal device, the method further comprises:
the proximity service entity sends a second discovery filter to the first terminal device, wherein the second discovery filter comprises a first code word of the second terminal device, and each bit of the first code word is 1;
the sending, to the first terminal device, the first discovery filter generated using the valid codeword includes:
if the proximity service entity obtains the valid code word corresponding to the first application identifier and the first timer is not overtime, the proximity service entity sends the first discovery filter obtained by updating the second discovery filter by using the valid code word to the first terminal device.
5. A method of discovering a terminal device, the method comprising:
a proximity service entity receives a first request message sent by first terminal equipment, wherein the first request message carries a first application identifier;
when the proximity service entity does not store the effective code word corresponding to the application identifier, acquiring at least one sub-application identifier according to the first application identifier, and configuring a discovery filter for the at least one sub-application identifier;
and the proximity service entity sends a first message to the first terminal device, wherein the first message carries the discovery filter and the at least one sub-application identifier.
6. The method of claim 5, wherein the at least one application identifier comprises a partial tag in the first application identifier.
7. A proximity services entity, characterized in that said proximity services entity comprises:
a transmission module, configured to receive a first request message sent by a first terminal device, where the first request message carries a device identifier of the first terminal device, a first application identifier, and a first indication, and the first indication is used to request a first discovery filter;
a processing module, configured to record the first request message for the first application identifier by using the device identifier when the proximity service entity does not store the valid codeword corresponding to the first application identifier;
the transmission module is further configured to send the first discovery filter generated by the processing module using the valid codeword to the first terminal device after obtaining the valid codeword corresponding to the first application identifier.
8. The proximity services entity of claim 7, wherein the transmission module is further configured to:
before sending the first discovery filter generated by the processing module by using the valid code word to the first terminal device, sending a first timer to the first terminal device, where the first timer is used to indicate a validity period of recording the first request message for the first application identifier.
9. The proximity service entity of claim 8, wherein the transmission module is specifically configured to:
and after the valid code word corresponding to the first application identifier is obtained and the first timer is not timed out, sending the first discovery filter to the first terminal equipment.
10. The proximity services entity of claim 7 or 8, wherein the transmission module is further configured to:
before sending a first discovery filter generated by the processing module by using the valid code word to the first terminal device, sending a second discovery filter to the first terminal device, wherein the second discovery filter comprises a first code word of the second terminal device, and each bit of the first code word is 1;
and if the proximity service entity obtains the valid code word corresponding to the first application identifier and the first timer is not overtime, sending the first discovery filter obtained by updating the second discovery filter by the processing module by using the valid code word to the first terminal equipment.
11. A proximity services entity, characterized in that said proximity services entity comprises:
the transmission module is used for receiving a first request message sent by first terminal equipment, wherein the first request message carries a first application identifier;
a processing module, configured to, when the proximity service entity does not store a valid codeword corresponding to the application identifier, obtain at least one sub-application identifier according to the first application identifier, and configure a discovery filter for the at least one sub-application identifier;
the transmission module is further configured to send a first message to the first terminal device, where the first message carries the discovery filter and the at least one sub-application identifier.
12. The proximity services entity of claim 11, wherein the at least one application identity comprises a partial tag in the first application identity.
13. A proximity services entity, characterized in that said proximity services entity comprises:
a processor;
a memory for storing computer executable program code;
a communication interface;
a receiver, a transmitter;
the processor, the receiver, the transmitter, the memory, and the communication interface communicate with each other through a bus;
the processor reads program code and data stored in the memory, wherein the program code comprises instructions that, when executed by the processor, cause the processor to:
receiving, by the receiver, a first request message sent by a first terminal device, where the first request message carries a device identifier of the first terminal device, a first application identifier, and a first indication, and the first indication is used to request a first discovery filter;
when the proximity service entity does not store the effective code word corresponding to the first application identifier, recording the first request message of the first application identifier by using the equipment identifier;
and after obtaining the valid code word corresponding to the first application identifier, sending the first discovery filter generated by using the valid code word to the first terminal equipment through the transmitter.
14. The proximity services entity of claim 13, wherein before sending the first discovery filter generated using the valid codeword to the first terminal device, the processor further performs:
sending a first timer to the first terminal device through the transmitter, wherein the first timer is used for indicating the validity period of the first request message for recording the first application identifier.
15. The proximity services entity of claim 14, wherein the processor is further configured to perform:
and after the valid code word corresponding to the first application identifier is obtained and the first timer is not timed out, sending the first discovery filter to the first terminal equipment through the transmitter.
16. The proximity service entity of claim 13 or 14, wherein before sending the first discovery filter generated using the valid code word to the first terminal device, the processor further performs:
sending, by the transmitter, a second discovery filter to the first terminal device, the second discovery filter including a first codeword for the second terminal device, each bit of the first codeword being 1;
and if the proximity service entity obtains the valid code word corresponding to the first application identifier and the first timer is not overtime, the transmitter sends the first discovery filter obtained by updating the second discovery filter by using the valid code word to the first terminal equipment.
17. A proximity services entity, characterized in that said proximity services entity comprises:
a processor;
a memory for storing computer executable program code;
a communication interface;
a receiver, a transmitter;
the processor, the receiver, the transmitter, the memory, and the communication interface communicate with each other through a bus;
the processor reads program code and data stored in the memory, wherein the program code comprises instructions that, when executed by the processor, cause the processor to:
receiving a first request message sent by a first terminal device through the receiver, wherein the first request message carries a first application identifier;
when the proximity service entity does not store the valid code word corresponding to the application identifier, acquiring at least one sub-application identifier according to the first application identifier, and configuring a discovery filter for the at least one sub-application identifier;
sending, by the transmitter, a first message to the first terminal device, the first message carrying the discovery filter and the at least one sub-application identifier.
18. The proximity services entity of claim 17, wherein the at least one application identity comprises a partial tag in the first application identity.
CN201580081743.9A 2015-08-21 2015-08-21 Method and device for discovering terminal device Active CN107852597B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/087790 WO2017031629A1 (en) 2015-08-21 2015-08-21 Method and device for finding terminal device

Publications (2)

Publication Number Publication Date
CN107852597A CN107852597A (en) 2018-03-27
CN107852597B true CN107852597B (en) 2020-06-02

Family

ID=58099374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201580081743.9A Active CN107852597B (en) 2015-08-21 2015-08-21 Method and device for discovering terminal device

Country Status (2)

Country Link
CN (1) CN107852597B (en)
WO (1) WO2017031629A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111836247B (en) * 2019-08-09 2023-12-05 维沃移动通信有限公司 Method and equipment for processing near discovery service of terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113890A (en) * 2013-04-16 2014-10-22 北京三星通信技术研究有限公司 Approach discovery method among UE
CN104540106A (en) * 2015-01-13 2015-04-22 中兴通讯股份有限公司 Verifying processing method for finding service code and device
CN104837108A (en) * 2014-02-07 2015-08-12 中兴通讯股份有限公司 Device to device broadcast communication method and user device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103856927B (en) * 2012-12-05 2017-05-31 电信科学技术研究院 The method of proximity relations, equipment and communication system between a kind of determination user equipment
JP2016521514A (en) * 2013-05-12 2016-07-21 エルジー エレクトロニクス インコーポレイティド Proximity service execution method and apparatus therefor
KR101975365B1 (en) * 2013-07-10 2019-05-07 콘비다 와이어리스, 엘엘씨 Context-aware proximity services

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113890A (en) * 2013-04-16 2014-10-22 北京三星通信技术研究有限公司 Approach discovery method among UE
CN104837108A (en) * 2014-02-07 2015-08-12 中兴通讯股份有限公司 Device to device broadcast communication method and user device
CN104540106A (en) * 2015-01-13 2015-04-22 中兴通讯股份有限公司 Verifying processing method for finding service code and device

Also Published As

Publication number Publication date
CN107852597A (en) 2018-03-27
WO2017031629A1 (en) 2017-03-02

Similar Documents

Publication Publication Date Title
JP5395955B2 (en) Terminal identifier in communication network
US9131473B2 (en) Method, device, and communication system for establishing connection with network management system
CN108810993B (en) Network slice selection method, equipment, UE, control plane function entity and medium
CN108540973B (en) Data service processing method, device and system in roaming scene
CN104106285A (en) Device triggering solutions
EP3815401A1 (en) Security management for service access in a communication system
EP3128773B1 (en) Processing method and apparatus for d2d discovery
CN110166405B (en) Communication method, related device and system
US9723478B2 (en) UE configuration method, network side device and system for proximity awareness
JP7448047B2 (en) NWDAF nodes and methods
CN103188616A (en) Management method and system of terminal group
WO2016177106A1 (en) Dedicated core network selection method and device
WO2016167834A1 (en) Subscriber identity pattern
CN111083690A (en) Method and device for reporting user plane functional entity information
CN107484211B (en) Method and device for switching access point
CN102421190A (en) Method for paging machine type communication (MTC) equipment and equipment
CN107852597B (en) Method and device for discovering terminal device
WO2015154426A1 (en) Method and device for prose temporary identifier notification and update
CN105472530A (en) Method, device and system for near distance communication discovery
KR20190069534A (en) Service subscription method and device
CN101483904B (en) Network selection method, network element equipment and grid system
WO2015135269A1 (en) Service discovery and authentication method, device, terminal, system, and computer storage medium
CN106888424B (en) Acquisition method and acquisition device for media access control address and network camera
CN111263355B (en) GUTI distribution method and device
CN114938495B (en) Communication method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210419

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Device Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right