WO2017031629A1 - Method and device for finding terminal device - Google Patents
Method and device for finding terminal device Download PDFInfo
- Publication number
- WO2017031629A1 WO2017031629A1 PCT/CN2015/087790 CN2015087790W WO2017031629A1 WO 2017031629 A1 WO2017031629 A1 WO 2017031629A1 CN 2015087790 W CN2015087790 W CN 2015087790W WO 2017031629 A1 WO2017031629 A1 WO 2017031629A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal device
- application identifier
- proximity service
- service entity
- valid codeword
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/22—Processing or transfer of terminal data, e.g. status or physical capabilities
- H04W8/24—Transfer of terminal data
Definitions
- the present invention relates to the field of the Internet, and in particular, to a method and device for discovering a terminal device.
- the data communication path between terminal devices must be implemented through the core network. Even if the terminal devices are close to each other, when data needs to be transmitted, it still needs to be transmitted through the core network, occupying a large amount of bandwidth, and also requiring bandwidth. Higher, the transmission efficiency is also lower.
- Proximity Services (ProSe) technology is generally adopted. The technology mainly solves the problem that the terminal devices can be mutually discovered, and the terminal devices that are close to each other can directly exchange data without passing through the network, thereby effectively improving communication. s efficiency.
- the broadcast terminal device needs to send its own proximity service application identifier to the proximity service application entity to which the proximity service application entity determines the broadcast according to the terminal device context acquired from the Home Subscriber Server (HSS).
- HSS Home Subscriber Server
- the corresponding proximity service application codeword is generated and then returned to the broadcast terminal device, and the broadcast terminal device can broadcast its own proximity service application codeword.
- Listening process when the monitoring terminal device wants to listen to the broadcast terminal device, it sends a discovery request to the neighboring service application entity, so that the proximity service application entity queries and closes the service according to the terminal device context of the broadcast terminal device acquired from the HSS.
- the device can use the discovery filter to monitor the broadcast terminal device.
- the monitoring terminal device cannot listen to the broadcast terminal device.
- the present invention provides a method and a device for discovering a terminal device, which can solve the problem that the broadcast device cannot apply for broadcast after the monitoring device applies for monitoring, and the monitoring device can still monitor the broadcast. The problem with the broadcast device.
- a first aspect of the embodiments of the present invention provides a method for discovering a terminal device, where the method includes:
- the proximity service entity Receiving, by the proximity service entity, the first request message sent by the first terminal device, where the first request message carries the device identifier, the first application identifier, and the first indication of the first device, where the first indication is used to request the first Found a filter;
- the proximity service entity uses the device identifier to record the first request message for the first application identifier;
- the proximity service entity After obtaining the valid codeword corresponding to the first application identifier, the proximity service entity sends the first discovery filter generated by using the valid codeword to the first terminal device.
- the method before the sending the first discovery filter that is 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 indicate that the validity period of the first request message for the first application identifier is recorded.
- the first discovery filter that is generated according to the valid codeword is sent to the first terminal device, including :
- the proximity service entity After the proximity service entity obtains the valid codeword corresponding to the first application identifier, and the first timer does not time out, the proximity service entity sends the first discovery filter to the first Terminal Equipment.
- the first discovery filter generated by using the valid codeword is sent to the first Before the 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 a code, each bit in the first codeword is 1;
- the proximity service entity After the proximity service entity obtains the valid codeword corresponding to the first application identifier, and the first timer does not time out, the proximity service entity filters the second discovery by using the valid codeword.
- the first discovery filter obtained by the device update is sent to the first terminal device;
- the first discovery filter is a discovery filter that is updated by the proximity service entity to the second discovery filter according to the valid codeword after obtaining the valid codeword.
- the proximity service entity is configured to modify the second discovery filter after obtaining the valid codeword, so as to obtain the effective first discovery filter, so that the first terminal device can obtain an effective function.
- First discovery filter is configured to modify the second discovery filter after obtaining the valid codeword, so as to obtain the effective first discovery filter, so that the first terminal device can obtain an effective function.
- a second aspect of the present invention provides a method for discovering a terminal device, where the method includes:
- the proximity service entity obtains at least one sub-application identifier according to the first application identifier, and configures a discovery filter for the at least one sub-application identifier, when the valid codeword corresponding to the first application identifier is not saved;
- the proximity service entity sends a first message to the first terminal device, where the first message carries the discovery filter and the at least one sub-application identifier.
- the at least one application identifier includes a part of the label in the first application identifier.
- the first discovery device may be provided with a corresponding discovery filter for the first terminal device by using the sub-application identifier of the first application identifier, on the premise that the corresponding valid codeword cannot be found by using the first application identifier.
- a third aspect of the present invention provides a proximity service entity, where the proximity service entity includes:
- a transmitting module configured to receive a first request message sent by the first terminal device, where the first request message carries a device identifier, a first application identifier, and a first indication of the first terminal device, where the first indication is used Requesting 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 save the valid codeword corresponding to the first application identifier;
- the transmitting module is further configured to: after obtaining the valid codeword corresponding to the first application identifier, The processing module sends the first discovery filter generated by the valid codeword to the first terminal device.
- the transmission module is further configured to:
- the processing module Before sending, by the processing module, the first discovery filter generated by using the valid codeword to the first terminal device, sending a first timer to the first terminal device, where the first timer is used to indicate Recording an expiration date of the first request message for the first application identifier.
- the transmission module is specifically configured to:
- the first discovery filter After obtaining the valid codeword corresponding to the first application identifier, and the first timer does not time out, the first discovery filter is sent to the first terminal device.
- the transmission module is further configured to:
- the device includes a first codeword of the second terminal device, each bit in the first codeword is 1;
- the processing module filters the second discovery by using the valid codeword
- the first discovery filter obtained by the device update is sent to the first terminal device.
- a fourth aspect of the present invention provides a proximity service entity, where the proximity service entity includes:
- a transmitting module configured to receive a first request message sent by the first terminal device, where the first request message carries a first application identifier
- a processing module configured to: when the proximity service entity does not save the valid codeword corresponding to the application identifier, acquire at least one sub-application identifier according to the first application identifier, and configure discovery filtering for the at least one sub-application identifier Device
- the transmitting 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.
- the at least one application identifier includes a part of the label in the first application identifier.
- the first discovery request that carries the first indication sent by the first terminal device is received, and when the valid codeword is not saved, the foregoing first application is recorded.
- the first discovery filter is generated according to the valid codeword and the device identifier, and is returned to the first terminal device.
- the monitoring process can be implemented regardless of the time at which the first terminal device applies.
- the proximity service entity After obtaining the valid codeword, the proximity service entity returns a valid first discovery filter to the first terminal device at the first time, effectively avoiding the first A terminal device cannot monitor the second terminal device that starts to apply for the broadcast after initiating the first discovery request, even if the first device has previously applied for the monitoring of the second terminal device, thereby improving the user experience.
- 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.
- 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.
- the terms “comprises” and “comprises” and “the” and “the” are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or modules is not necessarily limited to Those steps or modules, but may include other steps or modules not explicitly listed or inherent to such processes, methods, products or devices, the division of the modules presented herein is merely a logical division. There may be additional divisions in the implementation of the actual application, for example, multiple modules may be combined or integrated into another system, or some features may be ignored, or not executed, and the displayed or discussed mutual coupling.
- the direct coupling or the communication connection may be through some interfaces, and the indirect coupling or communication connection between the modules may be electrical or the like, which is not limited herein.
- the module or the sub-module described as the separate component may or may not be physically separated, may not be a physical module, or may not be divided into a plurality of circuit modules, and may select a part thereof according to actual needs or All modules are used to achieve the objectives of the embodiments of the present invention.
- the embodiments of the present invention provide a method and a device for discovering a terminal device, which are used in the field of wireless communications, such as a peer-to-peer network.
- the terminal device may be a P2P device or a D2D device, and may be a device with wireless access capability, such as an in-vehicle device, a communication terminal, a mobile device, and a personal digital assistant.
- the method for discovering the terminal device involves at least two terminals. Interaction between devices, where the first terminal device is a device that requests to be monitored, and the second terminal device is a device that is broadcasted and monitored by the first terminal device.
- the interaction signal between the first terminal device and the second terminal device can implement peer-to-peer communication within a short distance without going through the network side.
- the broadcast device can obtain the valid codeword corresponding to the application identifier from the network side only after the broadcast process is successfully applied, that is, the monitoring device applies for the monitoring process only after the valid codeword is successfully allocated. That is, in general, the listening process occurs after the broadcast process, and the discovery filter configured by the network side according to the device identifier and the effective codeword can be obtained from the network side.
- the discovery filter is mainly composed of ProSe App Code and Mask.
- the filtering process is that the first terminal device performs "bitwise AND" calculation with the monitored ProSe App Code and Mask, and if the calculated result and the ProSe in the discovery filter are found, Like the App Code, the ProSe App Code is the ProSe App Code of interest.
- the embodiments of the present invention are directed to the problem of how the first terminal device acquires the information broadcast by the second terminal device in the case where the second terminal device applies for the broadcast process after the first terminal device applies for the listening process.
- the embodiment of the present invention mainly adopts two schemes:
- the foregoing interception request message carries the request information, where the request information may be information such as a subscription request indication, used to indicate that the first terminal device needs to obtain a valid discovery filter from the proximity service entity, and
- the request information may be information such as a subscription request indication, used to indicate that the first terminal device needs to obtain a valid discovery filter from the proximity service entity, and
- the first terminal device uses the device identifier of the first terminal device to record the first terminal device to the second
- the event of the first request message of the application identifier of the terminal device may be specifically configured to indicate that the first terminal device has initiated the second terminal device in the valid time by establishing a correspondence between the device identifier and the application identifier.
- the monitoring process but the valid discovery filter is not obtained, and after the proximity service entity obtains the valid codeword, the discovery filter corresponding to the valid codeword is sent to the first terminal device, so that the first terminal The device can utilize the discovery filter for discovery services.
- the proximity service entity extracts at least one sub-application identifier from the application identifier when the valid codeword corresponding to the application identifier of the second terminal device is not saved, and the at least one sub-application identifier is A discovery filter configured by a sub-application identifier is sent to the first terminal device, so that the first terminal device can use the discovery filter to perform a discovery service.
- a method for discovering a terminal device is described in the following, and a method for discovering a terminal device is described as an example from the perspective of a service entity. Examples include:
- the proximity service entity receives the first request message sent by the first terminal device.
- the first request message carries the device identifier, the first application identifier, and the first indication of the first device, where the device identifier of the first terminal device may be an International Mobile Subscriber Identity (IMSI) Any identifier that identifies the first terminal device, the first application identifier is an application identifier of the second terminal device, and the second terminal device is The identifier can be a Proximity Services Application Identify (Prose App ID) or the like.
- IMSI International Mobile Subscriber Identity
- the foregoing first indication is used to request the first discovery filter, and may be a subscription indicator, or may be another newly defined message or an extended message.
- the specific type is not limited herein.
- the first discovery filter is a discovery filter sent by the proximity service entity to the first terminal device after obtaining the valid codeword corresponding to the application identifier (the second terminal device has applied for a broadcast process) .
- the proximity service entity uses the device identifier to record the first request message for the first application identifier.
- the proximity service entity since the monitoring process takes effect after the broadcast process, that is, the second terminal device does not apply for the broadcast process, the proximity service entity does not configure the effective codeword for the second terminal device. Therefore, the first request message is extended by adding the first indication to the first request message, so that the first terminal device hopes to obtain the first discovery filter subsequently, regardless of whether the valid codeword is saved by the proximity service entity side. And causing the proximity service entity to use the device identity record when the proximity service entity determines that the valid codeword corresponding to the first application identifier is not saved, and the first request message includes the first indication An event of the first request message that is sent by the first terminal device to the first application.
- 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: recording the first application identifier and the device identifier corresponding to the first terminal device The first request message has been initiated to the second terminal device corresponding to the first application identifier, but the valid filter is not successfully obtained.
- the proximity service entity After obtaining the valid codeword corresponding to the application identifier, the proximity service entity sends the first discovery filter generated by using the valid codeword to the first terminal device.
- the first discovery request that carries the first indication sent by the first terminal device is received, and the first request for the first application identifier is recorded when the valid codeword is not saved.
- the message after the subsequent obtaining the valid codeword, 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.
- the monitoring process can be implemented regardless of when the first terminal device applies, and the near-business entity will return a first time after obtaining the valid codeword.
- the first discovery filter that is effective to the first terminal device effectively prevents the first terminal device from listening to the second terminal device that starts to apply for the broadcast after initiating the first discovery request, even if the first device has applied for the first
- the monitoring of the second terminal device improves the user experience.
- the first discovery filter generated by using the valid codeword is sent to the Before 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 indicate that the validity period of the first request message for the first application identifier is recorded, that is, the timing is indicated. If the first terminal device has received a listening request from the second terminal device, the first terminal device will eventually receive the first discovery filter returned by the service entity, and the second terminal can be implemented. If the first time period expires, the first terminal device needs to send the first request message again to obtain the next opportunity to listen to the second terminal device.
- the recorded event is valid only during the effective 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.
- the event needs to be cleared to prevent the proximity business entity from sending the first discovery filter to the first terminal device after obtaining the valid codeword, thereby knowing that the mechanism for temporarily retaining the event is to some extent It is possible to reduce unnecessary responses on the network side, and can continue to serve other terminal devices in need.
- the first discovery filter generated according to the valid codeword is sent to the first A terminal device, including:
- the proximity service entity After the proximity service entity obtains the valid codeword corresponding to the first application identifier, and the first timer does not time out, the proximity service entity sends the first discovery filter to the first Terminal Equipment.
- the valid codeword is generated by using the valid codeword.
- the method further includes:
- the proximity service entity sends a second discovery filter to the first terminal device, the second discovery filter includes a first codeword of the second terminal device, each of the first codewords The bit is 1, that is, the second discovery filter means that the ProSe App Code in the second discovery filter is an all-one Code, which is used to indicate that there is no valid ProSe App Code.
- the proximity service entity After the proximity service entity obtains the valid codeword corresponding to the first application identifier, and the first timer does not time out, the proximity service entity will use the valid codeword pair to the second discovery.
- the first discovery filter obtained by the filter update is sent to the first terminal device.
- the first discovery filter is a discovery filter that is updated by the proximity service entity to the second discovery filter according to the valid codeword after obtaining the valid codeword. That is, before the first timer expires, if the valid codeword is obtained, the proximity service entity triggers the process of updating the second discovery filter according to the event to obtain the first discovery filter.
- the proximity service entity can only modify the existing context, after the event entity records the above event, it needs to return a reserved second discovery filter (can be understood as an invalid discovery filter). Giving the first terminal device, after obtaining the valid codeword, updating the context of the second terminal device, and then updating the reserved second discovery filter to obtain the valid first discovery filter, so that A terminal device can discover the second terminal device by using the first discovery filter.
- a reserved second discovery filter can be understood as an invalid discovery filter.
- the first terminal device and the second terminal device respectively belong to different proximity service entities, and the first terminal device UE1 corresponds to the first proximity service.
- the entity Prose Function1, the second terminal device UE2 corresponds to the second proximity service entity Prose Function2.
- another embodiment of the embodiment of the present invention includes:
- the UE1 sends a discovery request Discovery Request to the Prose Function 1.
- the Discovery Request carries the UE Identity of the UE1, the application identifier (Prose App ID) of the UE2, and a subscription indicator.
- the Prose Function 1 sends a Monitor Request to the Prose Function 2, where the Monitor Request carries the device identifier of the UE1, the application identifier of the UE2, and a first indication, where the first indication is used to indicate that the UE1 is willing to obtain the Discovery Filter.
- the Prose Function 2 does not save the valid codeword corresponding to the application identifier, and when the interception request includes the first indication, the device identifier is used to record the event of the Discovery Request of the application identifier by the UE1. ;
- Prose Function 2 obtains the valid codeword corresponding to the application identifier, and sends a Monitor Response carrying the valid codeword and the application identifier to Prose Function1;
- Prose Function1 generates a Discovery Filter according to the application identifier and the valid codeword in the foregoing listening response;
- Prose Function1 sends a Discovery Response carrying the Discovery Filter to UE1;
- the UE1 discovers the UE2 by using the Discovery Filter, and acquires broadcast information of the UE2.
- the proximity service entity receives a first request message sent by the first terminal device.
- the first request message carries an application identifier of the second terminal device.
- the proximity service entity obtains at least one sub-application identifier according to the application identifier, and configures a discovery filter for the at least one sub-application identifier, when the valid codeword corresponding to the application identifier is not saved.
- ProSe App ID public land mobile network (Public Land Mobile Network, PLMN) ID + ProSe App ID name
- Subset of Prose APP ID includes a partial label (Label).
- a mail sent to Beijing because the address is not clear, may not be able to know which city the mail is sent to, but if you extract the name of the district under the jurisdiction of Beijing, such as Haidian District, that is through Haidian
- Haidian District that is through Haidian
- the zone can also lock the destination of the mail to Beijing. It can be seen that the name of the upper layer of the upper layer can be inferred by the small geographical name.
- the proximity service entity sends a first message to the first terminal device, where the first message carries the discovery filter and the at least one sub-application identifier.
- the at least one sub-application identifier may also be placed in the discovery filter, where the at least one application identifier includes a part of the label in the application identifier.
- the proximity service entity extracts the at least one sub-application identifier from the application identifier when the valid codeword is not saved, and configures a discovery filter for the at least one sub-application identifier, so that the implementation fails.
- the application identifier finds the corresponding valid codeword
- the first terminal device can be provided with a corresponding discovery filter by using 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 third aspect of the present invention provides a proximity service entity, the proximity service entity. 40 includes:
- the transmitting module 401 is configured to receive a first request message sent by the first terminal device, where the first request message carries a device identifier, a first application identifier, and a first indication of the first terminal device, where the first indication is Requesting the first discovery filter;
- the processing module 402 is configured to: when the proximity service entity does not save the valid codeword corresponding to the first application identifier, use the device identifier to record the first request message for the first application identifier;
- the transmitting module 401 is further configured to: after obtaining the valid codeword corresponding to the first application identifier, send, by the processing module 402, the first discovery filter generated by using the valid codeword to the first Terminal Equipment.
- the processing module 402 when the transmission module 401 receives the first discovery request that carries the first indication, and when the proximity service entity does not save the valid codeword, the processing module 402 records the foregoing identifier for the first application identifier. After the first request message is obtained, the first discovery filter is generated according to the valid codeword and the device identifier, and is returned to the first terminal device by the transmission module 401.
- the monitoring process can be implemented regardless of the time at which the first terminal device applies.
- the proximity service entity After obtaining the valid codeword, the proximity service entity returns a valid first discovery filter to the first terminal device at the first time, effectively avoiding the first An end device cannot listen to start after initiating the first discovery request The second terminal device that applies for the broadcast, even if the first device has previously applied for the monitoring of the second terminal device, thereby improving the user experience.
- the transmission module 401 is further configured to:
- the first discovery filter generated by using the valid codeword to the first terminal device, sending, to the first terminal device, a first timer, where the first timer is used by Instructing to record the validity period of the first request message for the first application identifier.
- the transmission module 401 is specifically configured to:
- the first discovery filter After obtaining the valid codeword corresponding to the first application identifier, and the first timer does not time out, the first discovery filter is sent to the first terminal device.
- the transmission module 401 is further configured to:
- the processing module 402 Sending, by the processing module 402, the first discovery filter generated by the valid codeword to the first terminal device, sending a second discovery filter to the first terminal device, the second discovery
- the filter includes a first codeword of the second terminal device, each bit in the first codeword is 1;
- the processing module 402 uses the valid codeword pair to the second discovery.
- the first discovery filter obtained by the filter update is sent to the first terminal device.
- the proximity service entity 50 includes:
- the transmitting module 501 is configured to receive a first request message sent by the first terminal device, where the first request message carries a first application identifier;
- the processing module 502 is configured to: when the proximity service entity does not save the valid codeword corresponding to the application identifier, acquire at least one sub-application identifier according to the first application identifier, and be the at least one Sub-application identification configuration discovery filter;
- the transmitting 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.
- the at least one application identifier includes a part of the label in the first application identifier.
- 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.
- the first terminal device can be provided with a corresponding discovery filter by modifying the application identifier of the application identifier, so that the first terminal device can discover the first according to the discovery filter. Two terminal devices.
- the present invention also provides a computer storage medium storing a program, the program including some or all of the steps of the above method for discovering a terminal device.
- the present invention also provides a computer storage medium storing a program that, when executed, includes some or all of the steps of the proximity service entity performing a method of discovering a terminal device.
- FIG. 6 is another schematic structural diagram of a terminal device 60 according to an 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 the devices through at least one network interface (Can be wired or wireless) to realize the communication connection between the system gateway and at least one other network element, and can use the Internet, a wide area network, a local network, a metropolitan area network, and the like.
- the memory 604 can include read-only memory and random access memory, and provides instructions and data to the processor 603.
- a portion of the memory 604 can also include, possibly including, a high-speed random access memory (RAM), and possibly a non- Un-volatile memory.
- RAM high-speed random access memory
- the memory 604 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof:
- Operation instructions include various operation instructions for implementing various operations.
- Operating system Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
- the processor 603 performs the following operations by calling an operation instruction stored in the memory 604 (the operation instruction can be stored in the operating system):
- a first request message sent by the first terminal device where the first request message carries a device identifier, a first application identifier, and a first indication of the first terminal device, where the first indication is used to request First discovery filter;
- the proximity service entity When the proximity service entity does not save the valid codeword corresponding to the first application identifier, use the device identifier to record the first request message for the first application identifier;
- the first discovery filter generated by using the valid codeword is sent by the transmitter 602 to the first terminal device.
- the transmitter 602 before sending, by the transmitter 602, the first discovery filter generated by using the valid codeword to the first terminal device, sending, by the transmitter 602, the first timer to the first terminal device, The first timer is used to indicate that the validity period of the first request message for the first application identifier is recorded.
- the processor 603 may further perform the following steps:
- the first discovery filter is sent by the transmitter 602 to the first terminal device.
- the processor 603 may further perform the following steps:
- the device includes a first codeword of the second terminal device, each bit in the first codeword is 1;
- the transmitter 602 will filter the second discovery by using the valid codeword.
- the first discovery filter obtained by the device update is sent to the first terminal device.
- FIG. 7 is another schematic structural diagram of a terminal device 70 according to an embodiment of the present invention.
- the terminal device 70 can 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 a memory 704 to enable connection communication between the devices through at least one network interface (can be wired or wireless) implement the system gateway with at least one of its
- the communication connection between the network elements can use the Internet, the wide area network, the local network, the metropolitan area network, and the like.
- the memory 704 can include read only memory and random access memory, and provides instructions and data to the processor 703.
- a portion of the memory 704 can also include, possibly including, a high speed random access memory (RAM), and possibly a non- Un-volatile memory.
- RAM high speed random access memory
- the memory 704 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof:
- Operation instructions include various operation instructions for implementing various operations.
- Operating system Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
- the processor 703 performs the following operations by calling an operation instruction stored in the memory 704 (the operation instruction can be stored in the operating system):
- the proximity service entity When the proximity service entity does not save the 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 transmitter 702 And transmitting, by the transmitter 702, the first message to the first terminal device, where the first message carries the discovery filter and the at least one sub-application identifier.
- the at least one application identifier includes a part of the label in the first application identifier.
- the disclosed system, apparatus, and method may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division, and the actual implementation may have another
- the manner of division, such as multiple units or components, may be combined or integrated into another system, or some features may be omitted or not performed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the 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 standalone product, may be stored in a computer readable storage medium.
- the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
- a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
- the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
本发明涉及互联网领域,尤其涉及的是一种发现终端设备的方法及设备。The present invention relates to the field of the Internet, and in particular, to a method and device for discovering a terminal device.
传统的移动网络中,终端设备间的数据通信路径必须要经过核心网实现,即便终端设备距离很近,但需要传递数据时,仍然需要经过核心网进行传递,占用大量带宽,也对带宽需求量较高,传输效率也较低。目前,一般采用接近业务(Proximity Services,ProSe)技术,该技术主要解决在终端设备之间可以互相发现的前提下,距离较近的终端设备间不经过网络即可直接进行数据交换,有效提高通信的效率。In a traditional mobile network, the data communication path between terminal devices must be implemented through the core network. Even if the terminal devices are close to each other, when data needs to be transmitted, it still needs to be transmitted through the core network, occupying a large amount of bandwidth, and also requiring bandwidth. Higher, the transmission efficiency is also lower. At present, the Proximity Services (ProSe) technology is generally adopted. The technology mainly solves the problem that the terminal devices can be mutually discovered, and the terminal devices that are close to each other can directly exchange data without passing through the network, thereby effectively improving communication. s efficiency.
现有技术中,主要有两个广播流程和监听流程。广播流程中:广播终端设备需要将自身的接近业务应用标识发送诶所属的接近业务应用实体,该接近业务应用实体在根据从归属签约服务器(Home Subscriber Server,HSS)获取的终端设备上下文确定该广播终端设备有权广播该接近业务应用标识后,对应生成接近业务应用码字,然后返回给该广播终端设备,是的该广播终端设备可以广播自身的接近业务应用码字。监听流程:监听终端设备想要对该广播终端设备进行监听时,向所属的接近业务应用实体发送发现请求,使得该接近业务应用实体根据从HSS获取的广播终端设备的终端设备上下文查询与接近业务应用标识对应的接近业务应用码字和接近业务应用掩码(Mask),并利用接近业务应用码字和接近业务应用掩码生成相应的发现过滤器,返回给该监听终端设备,使得该监听终端设备可以利用该发现过滤器对该广播终端设备进行监听。In the prior art, there are mainly two broadcast processes and a listening process. In the broadcast process, the broadcast terminal device needs to send its own proximity service application identifier to the proximity service application entity to which the proximity service application entity determines the broadcast according to the terminal device context acquired from the Home Subscriber Server (HSS). After the terminal device has the right to broadcast the proximity service application identifier, the corresponding proximity service application codeword is generated and then returned to the broadcast terminal device, and the broadcast terminal device can broadcast its own proximity service application codeword. Listening process: when the monitoring terminal device wants to listen to the broadcast terminal device, it sends a discovery request to the neighboring service application entity, so that the proximity service application entity queries and closes the service according to the terminal device context of the broadcast terminal device acquired from the HSS. Applying the proximity service application codeword and the proximity service application mask (Mask) corresponding to the identifier, and generating a corresponding discovery filter by using the proximity service application codeword and the proximity service application mask, and returning to the monitoring terminal device, so that the monitoring terminal is The device can use the discovery filter to monitor the broadcast terminal device.
但若广播终端设备在监听终端设备申请监听之后才申请广播,监听终端设备是无法监听到广播终端设备的。However, if the broadcast terminal device applies for broadcasting after the intercepting terminal device applies for monitoring, the monitoring terminal device cannot listen to the broadcast terminal device.
发明内容Summary of the invention
本发明提供了一种发现终端设备的方法及设备,能够解决现有技术中无法实现广播设备在监听设备申请监听之后申请广播,监听设备仍然能够监听到广 播设备的问题。The present invention provides a method and a device for discovering a terminal device, which can solve the problem that the broadcast device cannot apply for broadcast after the monitoring device applies for monitoring, and the monitoring device can still monitor the broadcast. The problem with the broadcast device.
本发明实施例第一方面提供了一种发现终端设备的方法,所述方法包括:A first aspect of the embodiments of the present invention provides a method for discovering a terminal device, where the method includes:
接近业务实体接收第一终端设备发送的第一请求消息,所述第一请求消息携带所述第一设备的设备标识、第一应用标识和第一指示,所述第一指示用于请求第一发现过滤器;Receiving, by the proximity service entity, the first request message sent by the first terminal device, where the first request message carries the device identifier, the first application identifier, and the first indication of the first device, where the first indication is used to request the first Found a filter;
在所述接近业务实体未保存所述第一应用标识对应的有效码字时,所述接近业务实体使用所述设备标识记录对所述第一应用标识的所述第一请求消息;When the proximity service entity does not save the valid codeword corresponding to the first application identifier, the proximity service entity uses the device identifier to record the first request message for the first application identifier;
所述接近业务实体在获得所述第一应用标识对应的有效码字后,将利用所述有效码字生成的第一发现过滤器发送给所述第一终端设备。After obtaining the valid codeword corresponding to the first application identifier, the proximity service entity sends the first discovery filter generated by using the valid codeword to the first terminal device.
结合第一方面,本发明第一方面的第一种实现方式中,所述将利用所述有效码字生成的第一发现过滤器发送给所述第一终端设备之前,所述方法还包括:With reference to the first aspect, in a first implementation manner of the first aspect of the present disclosure, before the sending the first discovery filter that is 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 indicate that the validity period of the first request message for the first application identifier is recorded. By timing the validity period of the event, it is possible to reduce the unnecessary response of the approaching business entity, and can continue to serve other terminal devices in need.
结合第一方面的第一种实现方式,本发明第一方面的第二种实现方式中,所述将根据所述有效码字生成的第一发现过滤器发送给所述第一终端设备,包括:With reference to the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the first discovery filter that is generated according to the valid codeword is sent to the first terminal device, including :
所述接近业务实体在获得所述第一应用标识对应的有效码字后,且所述第一定时器未超时时,所述接近业务实体将所述第一发现过滤器发送给所述第一终端设备。After the proximity service entity obtains the valid codeword corresponding to the first application identifier, and the first timer does not time out, the proximity service entity sends the first discovery filter to the first Terminal Equipment.
结合第一方面的第一种或第二种实现方式,本发明第一方面的第三种实现方式中,所述将利用所述有效码字生成的第一发现过滤器发送给所述第一终端设备之前,所述方法还包括:With reference to the first or second implementation manner of the first aspect, in a third implementation manner of the first aspect, the first discovery filter generated by using the valid codeword is sent to the first Before the terminal device, the method further includes:
所述接近业务实体将第二发现过滤器发送至所述第一终端设备,所述第二发现过滤器包括所述第二终端设备的第一码字和所述第二终端设备的第一掩码,所述第一码字中的每一位均为1;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 a code, each bit in the first codeword is 1;
所述将根据所述有效码字生成的第一发现过滤器发送给所述第一终端设 备,包括:Transmitting, by the first discovery filter generated according to the valid codeword, to the first terminal Preparation, including:
若所述接近业务实体在获得所述第一应用标识对应的有效码字后,且所述第一定时器未超时,所述接近业务实体将利用所述有效码字对所述第二发现过滤器更新得到的所述第一发现过滤器发送给所述第一终端设备;After the proximity service entity obtains the valid codeword corresponding to the first application identifier, and the first timer does not time out, the proximity service entity filters the second discovery by using the valid codeword. The first discovery filter obtained by the device update is sent to the first terminal device;
所述第一发现过滤器为所述接近业务实体在获得所述有效码字后,根据所述有效码字对所述第二发现过滤器进行更新后的发现过滤器。The first discovery filter is a discovery filter that is updated by the proximity service entity to the second discovery filter according to the valid codeword after obtaining the valid codeword.
接近业务实体通过设置第二发现过滤器,实现在后续获得有效码字后,对该第二发现过滤器进行修改,从而获得有效的上述第一发现过滤器,使得第一终端设备能够获得有效的第一发现过滤器。The proximity service entity is configured to modify the second discovery filter after obtaining the valid codeword, so as to obtain the effective first discovery filter, so that the first terminal device can obtain an effective function. First discovery filter.
本发明第二方面提供一种发现终端设备的方法,所述方法包括:A second aspect of the present invention provides a method for discovering a terminal device, where the method includes:
接近业务实体接收第一终端设备发送的第一请求消息,所述第一请求消息携带第一应用标识;Receiving, by the service entity, the first request message sent by the first terminal device, where the first request message carries the first application identifier;
所述接近业务实体在未保存所述第一应用标识对应的有效码字时,根据所述第一应用标识获取至少一个子应用标识,并为所述至少一个子应用标识配置发现过滤器;The proximity service entity obtains at least one sub-application identifier according to the first application identifier, and configures a discovery filter for the at least one sub-application identifier, when the valid codeword corresponding to the first application identifier is not saved;
所述接近业务实体向所述第一终端设备发送第一消息,所述第一消息携带所述发现过滤器和所述至少一个子应用标识。The proximity service entity sends 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 part of the label in the first application identifier. The first discovery device may be provided with a corresponding discovery filter for the first terminal device by using the sub-application identifier of the first application identifier, on the premise that the corresponding valid codeword cannot be found by using the first application identifier.
本发明第三方面提供一种接近业务实体,所述接近业务实体包括:A third aspect of the present invention provides a proximity service entity, where the proximity service entity includes:
传输模块,用于接收第一终端设备发送的第一请求消息,所述第一请求消息携带所述第一终端设备的设备标识、第一应用标识和第一指示,所述第一指示用于请求第一发现过滤器;a transmitting module, configured to receive a first request message sent by the first terminal device, where the first request message carries a device identifier, a first application identifier, and a first indication of the first terminal device, where the first indication is used Requesting 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 save the valid codeword corresponding to the first application identifier;
所述传输模块还用于在获得所述第一应用标识对应的有效码字后,将所述 处理模块利用所述有效码字生成的所述第一发现过滤器发送给所述第一终端设备。The transmitting module is further configured to: after obtaining the valid codeword corresponding to the first application identifier, The processing module sends the first discovery filter generated by the valid codeword to the first terminal device.
结合第三方面,本发明第三方面的第一种实现方式中,所述传输模块还用于:In conjunction with the third aspect, in a first implementation manner of the third aspect of the present disclosure, the transmission module is further configured to:
在将所述处理模块利用所述有效码字生成的第一发现过滤器发送给所述第一终端设备之前,向所述第一终端设备发送第一定时器,所述第一定时器用于指示记录所述对所述第一应用标识的所述第一请求消息的有效期。Before sending, by the processing module, the first discovery filter generated by using the valid codeword to the first terminal device, sending a first timer to the first terminal device, where the first timer is used to indicate Recording an expiration date of 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, the transmission module is specifically configured to:
在获得所述第一应用标识对应的有效码字后,且所述第一定时器未超时时,将所述第一发现过滤器发送给所述第一终端设备。After obtaining the valid codeword corresponding to the first application identifier, and the first timer does not time out, the first discovery filter is sent to the first terminal device.
结合第三方面或第三方面的第一种实现方式,本发明第三方面的第三种实现方式中,所述传输模块还用于:With reference to the third aspect or the first implementation manner of the third aspect, in the third implementation manner of the third aspect of the present disclosure, the transmission module is further configured to:
在将所述处理模块利用所述有效码字生成的第一发现过滤器发送给所述第一终端设备之前,将第二发现过滤器发送至所述第一终端设备,所述第二发现过滤器包括所述第二终端设备的第一码字,所述第一码字中的每一位均为1;Sending, by the processing module, the first discovery filter that is generated by using the valid codeword to the first terminal device, sending a second discovery filter to the first terminal device, where the second discovery filtering The device includes a first codeword of the second terminal device, each bit in the first codeword is 1;
若所述接近业务实体在获得所述第一应用标识对应的有效码字后,且所述第一定时器未超时,则将所述处理模块利用所述有效码字对所述第二发现过滤器更新得到的所述第一发现过滤器发送给所述第一终端设备。After the proximity service entity obtains the valid codeword corresponding to the first application identifier, and the first timer does not time out, the processing module filters the second discovery by using the valid codeword The first discovery filter obtained by the device update is sent to the first terminal device.
本发明第四方面提供一种接近业务实体,所述接近业务实体包括:A fourth aspect of the present invention provides a proximity service entity, where the proximity service entity includes:
传输模块,用于接收第一终端设备发送的第一请求消息,所述第一请求消息携带第一应用标识;a transmitting module, configured to receive a first request message sent by the first terminal device, where the first request message carries a first application identifier;
处理模块,用于在所述接近业务实体未保存所述应用标识对应的有效码字时,根据所述第一应用标识获取至少一个子应用标识,并为所述至少一个子应用标识配置发现过滤器;a processing module, configured to: when the proximity service entity does not save the valid codeword corresponding to the application identifier, acquire at least one sub-application identifier according to the first application identifier, and configure discovery filtering for the at least one sub-application identifier Device
所述传输模块还用于向所述第一终端设备发送第一消息,所述第一消息携带所述发现过滤器和所述至少一个子应用标识。 The transmitting 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.
结合第四方面,本发明第四方面的第一种实现方式中,所述至少一个应用标识包括所述第一应用标识中的部分标签。In conjunction with the fourth aspect, in a first implementation manner of the fourth aspect, the at least one application identifier includes a part of the label in the first application identifier.
从以上技术方案中可以看出,本发明中,在接收到第一终端设备发送的携带第一指示的第一发现请求,并在未保存上述有效码字时,记录上述对所述第一应用标识的所述第一请求消息,在后续获取到上述有效码字后,根据该有效码字和设备标识生成第一发现过滤器,并返回给第一终端设备。即可实现不论第一终端设备在什么时刻申请的监听流程,接近业务实体都会在获得有效码字后,第一时间返回一个有效的上述第一发现过滤器给第一终端设备,有效避免了第一终端设备无法监听到在发起第一发现请求之后才开始申请广播的第二终端设备,即使第一设备之前申请过对第二终端设备的监听,从而提高了用户体验。It can be seen from the foregoing technical solution that, in the present invention, the first discovery request that carries the first indication sent by the first terminal device is received, and when the valid codeword is not saved, the foregoing first application is recorded. After the first request message is subsequently obtained, the first discovery filter is generated according to the valid codeword and the device identifier, and is returned to the first terminal device. The monitoring process can be implemented regardless of the time at which the first terminal device applies. After obtaining the valid codeword, the proximity service entity returns a valid first discovery filter to the first terminal device at the first time, effectively avoiding the first A terminal device cannot monitor the second terminal device that starts to apply for the broadcast after initiating the first discovery request, even if the first device has previously applied for the monitoring of the second terminal device, thereby improving the user experience.
图1为本发明实施例中一种发现终端设备的方法的流程图;FIG. 1 is a flowchart of a method for discovering a terminal device according to an embodiment of the present invention;
图2为本发明实施例中一种发现终端设备的方法的具体应用场景流程图;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;
图3为本发明实施例中一种发现终端设备的方法另一流程图;FIG. 3 is another flowchart of a method for discovering a terminal device according to an embodiment of the present invention;
图3-1为本发明实施例中应用标识的结构示意图;3-1 is a schematic structural diagram of an application identifier in an embodiment of the present invention;
图4为本发明实施例一种接近业务实体的结构示意图;4 is a schematic structural diagram of a proximity service entity according to an embodiment of the present invention;
图5为本发明实施例另一种接近业务实体的结构示意图;FIG. 5 is a schematic structural diagram of another proximity service entity according to an embodiment of the present invention; FIG.
图6为本发明实施例另一种接近业务实体的结构示意图;6 is a schematic structural diagram of another proximity service entity according to an embodiment of the present invention;
图7为本发明实施例另一种接近业务实体的结构示意图。FIG. 7 is a schematic structural diagram of another proximity service entity according to an embodiment of the present invention.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例,基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments, based on All other embodiments obtained by those skilled in the art without creative efforts are within the scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使 用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或模块的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或模块,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或模块,本文中所出现的模块的划分,仅仅是一种逻辑上的划分,实际应用中实现时可以有另外的划分方式,例如多个模块可以结合成或集成在另一个系统中,或一些特征可以忽略,或不执行,另外,所显示的或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,模块之间的间接耦合或通信连接可以是电性或其他类似的形式,本文中均不作限定。并且,作为分离部件说明的模块或子模块可以是也可以不是物理上的分离,可以是也可以不是物理模块,或者可以分不到多个电路模块中,可以根据实际的需要选择其中的部分或全部模块来实现本发明实施例方案的目的。The terms "first", "second" and the like in the specification and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a particular order or order. It should be understood that this makes The data used may be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than what is illustrated or described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or modules is not necessarily limited to Those steps or modules, but may include other steps or modules not explicitly listed or inherent to such processes, methods, products or devices, the division of the modules presented herein is merely a logical division. There may be additional divisions in the implementation of the actual application, for example, multiple modules may be combined or integrated into another system, or some features may be ignored, or not executed, and the displayed or discussed mutual coupling. The direct coupling or the communication connection may be through some interfaces, and the indirect coupling or communication connection between the modules may be electrical or the like, which is not limited herein. Moreover, the module or the sub-module described as the separate component may or may not be physically separated, may not be a physical module, or may not be divided into a plurality of circuit modules, and may select a part thereof according to actual needs or All modules are used to achieve the objectives of the embodiments of the present invention.
本发明实施例提供了一种发现终端设备的方法及设备,用于无线通信领域,如对等网络。本文中所出现的终端设备可以为P2P设备、D2D设备,具体可以是车载装置、通信终端、移动设备及个人数字助理等具有无线接入能力的设备,该终端设备发现的方法涉及至少两个终端设备之间的交互,文中以第一终端设备为请求监听的设备,以第二终端设备为广播且被第一终端设备监听的设备。其中,第一终端设备与第二终端设备之间的交互信号不需要经过网络侧即可在短距离内实现对等通信。由于现有技术中,广播设备只有在成功申请广播流程后,才可以从网络侧获取与应用标识对应的有效码字,即表明监听设备只有在上述有效码字成功分配后,再申请监听流程(即一般情况下,监听流程发生在广播流程之后),即可从网络侧获取网络侧根据设备标识和有效码字配置的发现过滤器。The embodiments of the present invention provide a method and a device for discovering a terminal device, which are used in the field of wireless communications, such as a peer-to-peer network. The terminal device may be a P2P device or a D2D device, and may be a device with wireless access capability, such as an in-vehicle device, a communication terminal, a mobile device, and a personal digital assistant. The method for discovering the terminal device involves at least two terminals. Interaction between devices, where the first terminal device is a device that requests to be monitored, and the second terminal device is a device that is broadcasted and monitored by the first terminal device. The interaction signal between the first terminal device and the second terminal device can implement peer-to-peer communication within a short distance without going through the network side. In the prior art, the broadcast device can obtain the valid codeword corresponding to the application identifier from the network side only after the broadcast process is successfully applied, that is, the monitoring device applies for the monitoring process only after the valid codeword is successfully allocated. That is, in general, the listening process occurs after the broadcast process, and the discovery filter configured by the network side according to the device identifier and the effective codeword can be obtained from the network side.
该发现过滤器主要由ProSe App Code和Mask组成,过滤的过程是第一终端设备用监听到的ProSe App Code和Mask做“按位与”计算,若计算得到的结果和发现过滤器中的ProSe App Code一样,说明该ProSe App Code为感兴趣的ProSe App Code。 The discovery filter is mainly composed of ProSe App Code and Mask. The filtering process is that the first terminal device performs "bitwise AND" calculation with the monitored ProSe App Code and Mask, and if the calculated result and the ProSe in the discovery filter are found, Like the App Code, the ProSe App Code is the ProSe App Code of interest.
本发明的各实施例旨在解决第二终端设备在第一终端设备申请监听流程后才申请广播流程的情况下,第一终端设备如何获取第二终端设备所广播的信息的问题。The embodiments of the present invention are directed to the problem of how the first terminal device acquires the information broadcast by the second terminal device in the case where the second terminal device applies for the broadcast process after the first terminal device applies for the listening process.
为解决上述技术问题,本发明实施例主要采用两种方案:In order to solve the above technical problem, the embodiment of the present invention mainly adopts two schemes:
1、对第一终端设备发起的监听请求消息进行扩展1. Extending the interception request message initiated by the first terminal device
具体为,在上述监听请求消息中携带请求信息,该请求信息可以是类似订阅请求指示之类的信息,用于表示第一终端设备需要从接近业务实体获取有效的发现过滤器的愿望,以及使得所述接近业务实体在没有保存所述应用标识对应的有效码字,且所述第一请求消息包含所述请求信息时,使用第一终端设备的设备标识记录所述第一终端设备对第二终端设备的应用标识的所述第一请求消息的事件(具体可以是通过建立该设备标识与该应用标识的对应关系,用于表示第一终端设备在有效时间内曾经向第二终端设备发起过监听流程,但未获得有效的发现过滤器),而在该接近业务实体获取到有效码字后,会将该有效码字对应的发现过滤器发送给第一终端设备,以使该第一终端设备能够利用该发现过滤器进行发现服务。Specifically, the foregoing interception request message carries the request information, where the request information may be information such as a subscription request indication, used to indicate that the first terminal device needs to obtain a valid discovery filter from the proximity service entity, and When the proximity service entity does not save the valid codeword corresponding to the application identifier, and the first request message includes the request information, the first terminal device uses the device identifier of the first terminal device to record the first terminal device to the second The event of the first request message of the application identifier of the terminal device may be specifically configured to indicate that the first terminal device has initiated the second terminal device in the valid time by establishing a correspondence between the device identifier and the application identifier. The monitoring process, but the valid discovery filter is not obtained, and after the proximity service entity obtains the valid codeword, the discovery filter corresponding to the valid codeword is sent to the first terminal device, so that the first terminal The device can utilize the discovery filter for discovery services.
2、通过匹配部分子应用标识来获取发现过滤器2. Get the discovery filter by matching some sub-application IDs
具体为,第一终端设备发起监听流程后,接近业务实体在未保存第二终端设备的应用标识对应的有效码字时,从该应用标识中提取至少一个子应用标识,并将为所述至少一个子应用标识配置的发现过滤器发送给第一终端设备,使得第一终端设备可以利用该发现过滤器进行发现服务。Specifically, after the first terminal device initiates the listening process, the proximity service entity extracts at least one sub-application identifier from the application identifier when the valid codeword corresponding to the application identifier of the second terminal device is not saved, and the at least one sub-application identifier is A discovery filter configured by a sub-application identifier is sent to the first terminal device, so that the first terminal device can use the discovery filter to perform a discovery service.
请参照图1,下面从接近业务实体的角度对本发明实施例中的一种发现终端设备的方法进行描述,以下从接近业务实体的角度对一种发现终端设备的方法进行举例说明,本发明实施例包括:Referring to FIG. 1 , a method for discovering a terminal device according to an embodiment of the present invention is described in the following, and a method for discovering a terminal device is described as an example from the perspective of a service entity. Examples include:
101、接近业务实体接收第一终端设备发送的第一请求消息;101. The proximity service entity receives the first request message sent by the first terminal device.
其中,所述第一请求消息携带所述第一设备的设备标识、第一应用标识和第一指示,其中,第一终端设备的设备标识可以是国际移动用户识别码(International Mobile Subscriber Identify,IMSI)等可以标识第一终端设备的任何标识,上述第一应用标识为第二终端设备的应用标识,第二终端设备的应 用标识可以是接近业务应用标识(Proximity Services Application Identify,Prose App ID)等。The first request message carries the device identifier, the first application identifier, and the first indication of the first device, where the device identifier of the first terminal device may be an International Mobile Subscriber Identity (IMSI) Any identifier that identifies the first terminal device, the first application identifier is an application identifier of the second terminal device, and the second terminal device is The identifier can be a Proximity Services Application Identify (Prose App ID) or the like.
上述第一指示用于请求第一发现过滤器,可以为订阅请求指示(Subscribe Indicator),也可以是其他新定义的消息或扩展的消息,具体类型本文不做限定。另外,所述第一发现过滤器为所述接近业务实体在获得所述应用标识对应的有效码字后(第二终端设备已申请广播流程),发送给所述第一终端设备的发现过滤器。The foregoing first indication is used to request the first discovery filter, and may be a subscription indicator, or may be another newly defined message or an extended message. The specific type is not limited herein. In addition, the first discovery filter is a discovery filter sent by the proximity service entity to the first terminal device after obtaining the valid codeword corresponding to the application identifier (the second terminal device has applied for a broadcast process) .
102、在所述接近业务实体未保存所述第一应用标识对应的有效码字时,所述接近业务实体使用所述设备标识记录对所述第一应用标识的所述第一请求消息;102. When the proximity service entity does not save the valid codeword corresponding to the first application identifier, the proximity service entity uses the device identifier to record the first request message for the first application identifier.
可以理解的是,由于监听流程发生在广播流程之后才有效,即表明第二终端设备未申请广播流程,接近业务实体不会为第二终端设备配置有效码字的。因此,通过在第一请求消息中加入第一指示对上述第一请求消息进行拓展,以表示不管接近业务实体侧是否保存上述有效码字,第一终端设备都希望后续能够获得第一发现过滤器,以及使得在所述接近业务实体判断未保存所述第一应用标识对应的有效码字,且所述第一请求消息包含所述第一指示时,所述接近业务实体使用所述设备标识记录所述第一终端设备对所述第一应用标识的所述第一请求消息的事件。It can be understood that, since the monitoring process takes effect after the broadcast process, that is, the second terminal device does not apply for the broadcast process, the proximity service entity does not configure the effective codeword for the second terminal device. Therefore, the first request message is extended by adding the first indication to the first request message, so that the first terminal device hopes to obtain the first discovery filter subsequently, regardless of whether the valid codeword is saved by the proximity service entity side. And causing the proximity service entity to use the device identity record when the proximity service entity determines that the valid codeword corresponding to the first application identifier is not saved, and the first request message includes the first indication An event of the first request message that is sent by the first terminal device to the first application.
另外,接近业务实体使用所述设备标识记录对所述第一应用标识的所述第一请求消息,具体实现方式可以是:将第一应用标识和设备标识对应记录,即可表示第一终端设备曾向第一应用标识对应的第二终端设备发起过第一请求消息,但未成功获得有效的过滤器。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: recording the first application identifier and the device identifier corresponding to the first terminal device The first request message has been initiated to the second terminal device corresponding to the first application identifier, but the valid filter is not successfully obtained.
103、所述接近业务实体在获得所述应用标识对应的有效码字后,将利用所述有效码字生成的第一发现过滤器发送给所述第一终端设备。103. After obtaining the valid codeword corresponding to the application identifier, the proximity service entity sends the first discovery filter generated by using the valid codeword to the first terminal device.
本发明实施例中,在接收到第一终端设备发送的携带第一指示的第一发现请求,并在未保存上述有效码字时,记录上述对所述第一应用标识的所述第一请求消息,在后续获取到上述有效码字后,根据该有效码字和设备标识生成第一发现过滤器,并返回给第一终端设备。即可实现不论第一终端设备在什么时刻申请的监听流程,接近业务实体都会在获得有效码字后,第一时间返回一个 有效的上述第一发现过滤器给第一终端设备,有效避免了第一终端设备无法监听到在发起第一发现请求之后才开始申请广播的第二终端设备,即使第一设备之前申请过对第二终端设备的监听,从而提高用户体验。In the embodiment of the present invention, the first discovery request that carries the first indication sent by the first terminal device is received, and the first request for the first application identifier is recorded when the valid codeword is not saved. The message, after the subsequent obtaining the valid codeword, 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. The monitoring process can be implemented regardless of when the first terminal device applies, and the near-business entity will return a first time after obtaining the valid codeword. The first discovery filter that is effective to the first terminal device effectively prevents the first terminal device from listening to the second terminal device that starts to apply for the broadcast after initiating the first discovery request, even if the first device has applied for the first The monitoring of the second terminal device improves the user experience.
可选的,在上述图1所对应的实施例的基础上,本发明实施例的第一个可选实施例中,所述将利用所述有效码字生成的第一发现过滤器发送给所述第一终端设备之前,所述方法还包括:Optionally, on the basis of the foregoing embodiment corresponding to FIG. 1 , in a first optional embodiment of the embodiment of the present invention, the first discovery filter generated by using the valid codeword is sent to the Before 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 indicate that the validity period of the first request message for the first application identifier is recorded, that is, the timing is indicated. If the first terminal device has received a listening request from the second terminal device, the first terminal device will eventually receive the first discovery filter returned by the service entity, and the second terminal can be implemented. If the first time period expires, the first terminal device needs to send the first request message again to obtain the next opportunity to listen to the second terminal device.
根据本可选实施例可知,只有在上述第一定时器的有效时长内,所记录的所述事件才是有效的,可能一段时间后第一终端设备不再需要监听第二终端设备了,这时该事件就需要清除,以免接近业务实体在获得有效码字后,仍将第一发现过滤器发送给第一终端设备,由此可知,通过这种短暂保留该事件的机制,在一定程度上可以减少网络侧不必要的应答,而是可以继续为其他有需要的终端设备服务。According to the optional embodiment, the recorded event is valid only during the effective 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. The event needs to be cleared to prevent the proximity business entity from sending the first discovery filter to the first terminal device after obtaining the valid codeword, thereby knowing that the mechanism for temporarily retaining the event is to some extent It is possible to reduce unnecessary responses on the network side, and can continue to serve other terminal devices in need.
可选的,在上述第一个实施例的基础上,本发明实施例的第二个可选实施例中,所述将根据所述有效码字生成的第一发现过滤器发送给所述第一终端设备,包括:Optionally, on the basis of the foregoing first embodiment, in a second optional embodiment of the embodiment of the present invention, the first discovery filter generated according to the valid codeword is sent to the first A terminal device, including:
所述接近业务实体在获得所述第一应用标识对应的有效码字后,且所述第一定时器未超时时,所述接近业务实体将所述第一发现过滤器发送给所述第一终端设备。After the proximity service entity obtains the valid codeword corresponding to the first application identifier, and the first timer does not time out, the proximity service entity sends the first discovery filter to the first Terminal Equipment.
可选的,在上述图1所对应的实施例或上述第一个可选实施例的基础上,本发明实施例的第三个可选实施例中,所述将利用所述有效码字生成的第一发 现过滤器发送给所述第一终端设备之前,所述方法还包括:Optionally, on the basis of the foregoing embodiment corresponding to FIG. 1 or the foregoing optional embodiment, in a third optional embodiment of the embodiment of the present invention, the valid codeword is generated by using the valid codeword. First hair Before the filter is sent to the first terminal device, the method further includes:
所述接近业务实体将第二发现过滤器发送至所述第一终端设备,所述第二发现过滤器包括所述第二终端设备的第一码字,所述第一码字中的每一位均为1,即该第二发现过滤器是指该第二发现过滤器中的ProSe App Code是一个全1的Code,用来表示暂时没有有效的ProSe App Code。The proximity service entity sends a second discovery filter to the first terminal device, the second discovery filter includes a first codeword of the second terminal device, each of the first codewords The bit is 1, that is, the second discovery filter means that the ProSe App Code in the second discovery filter is an all-one Code, which is used to indicate that there is no valid ProSe App Code.
所述将根据所述有效码字生成的第一发现过滤器发送给所述第一终端设备,包括:And sending, by the first discovery filter that is generated according to the valid codeword, to the first terminal device, including:
若所述接近业务实体在获得所述第一应用标识对应的有效码字后,且所述第一定时器未超时,则所述接近业务实体将利用所述有效码字对所述第二发现过滤器更新得到的所述第一发现过滤器发送给所述第一终端设备。所述第一发现过滤器为所述接近业务实体在获得所述有效码字后,根据所述有效码字对所述第二发现过滤器进行更新后的发现过滤器。即在第一定时器超时之前,若获得上述有效码字,则,接近业务实体根据上述事件触发更新上述第二发现过滤器的流程,以得到第一发现过滤器。After the proximity service entity obtains the valid codeword corresponding to the first application identifier, and the first timer does not time out, the proximity service entity will use the valid codeword pair to the second discovery. The first discovery filter obtained by the filter update is sent to the first terminal device. The first discovery filter is a discovery filter that is updated by the proximity service entity to the second discovery filter according to the valid codeword after obtaining the valid codeword. That is, before the first timer expires, if the valid codeword is obtained, the proximity service entity triggers the process of updating the second discovery filter according to the event to obtain the first discovery filter.
可以理解的是,由于接近业务实体只能对已有的上下文进行修改,所以在接近业务实体记录上述事件后,需要返回一个预留的第二发现过滤器(可以理解为一个无效的发现过滤器)给第一终端设备,在获取有效码字后,对第二终端设备的上下文进行更新,然后将该预留的第二发现过滤器进行更新后得到有效的上述第一发现过滤器,使得第一终端设备可以利用该第一发现过滤器发现第二终端设备。It can be understood that, since the proximity service entity can only modify the existing context, after the event entity records the above event, it needs to return a reserved second discovery filter (can be understood as an invalid discovery filter). Giving the first terminal device, after obtaining the valid codeword, updating the context of the second terminal device, and then updating the reserved second discovery filter to obtain the valid first discovery filter, so that A terminal device can discover the second terminal device by using the first discovery filter.
为便于理解,下面以一具体的应用场景对本发明实施例中的进行详细描述,以下以第一终端设备和第二终端设备分别属于不同的接近业务实体,第一终端设备UE1对应第一接近业务实体Prose Function1,第二终端设备UE2对应第二接近业务应实体Prose Function2,参阅图2,本发明实施例中另一实施例包括:For the sake of understanding, the following describes the embodiments of the present invention in detail in a specific application scenario. The first terminal device and the second terminal device respectively belong to different proximity service entities, and the first terminal device UE1 corresponds to the first proximity service. The entity Prose Function1, the second terminal device UE2 corresponds to the second proximity service entity Prose Function2. Referring to FIG. 2, another embodiment of the embodiment of the present invention includes:
201、UE1向Prose Function1发送发现请求Discovery Request;所述Discovery Request携带所述UE1的设备标识(UE Identify)、UE2的应用标识(Prose App ID)和订阅请求指示(Subscribe Indicator)。 201. The UE1 sends a discovery request Discovery Request to the Prose Function 1. The Discovery Request carries the UE Identity of the UE1, the application identifier (Prose App ID) of the UE2, and a subscription indicator.
202、Prose Function1向Prose Function2发送Monitor Request,所述Monitor Request携带所述UE1的设备标识、UE2的应用标识和第一指示,所述第一指示用于表示UE1获得Discovery Filter的意愿;202. The Prose Function 1 sends a Monitor Request to the Prose Function 2, where the Monitor Request carries the device identifier of the UE1, the application identifier of the UE2, and a first indication, where the first indication is used to indicate that the UE1 is willing to obtain the Discovery Filter.
203、Prose Function2未保存所述应用标识对应的有效码字,且所述监听请求包含所述第一指示时,使用所述设备标识记录所述UE1对所述应用标识的所述Discovery Request的事件;203. The Prose Function 2 does not save the valid codeword corresponding to the application identifier, and when the interception request includes the first indication, the device identifier is used to record the event of the Discovery Request of the application identifier by the UE1. ;
204、Prose Function2获得上述应用标识对应的有效码字,将携带上述有效码字和上述应用标识的Monitor Response发送给Prose Function1;204, Prose Function 2 obtains the valid codeword corresponding to the application identifier, and sends a Monitor Response carrying the valid codeword and the application identifier to Prose Function1;
205、Prose Function1根据上述监听响应中的应用标识和有效码字生成Discovery Filter;205, Prose Function1 generates a Discovery Filter according to the application identifier and the valid codeword in the foregoing listening response;
206、Prose Function1将携带Discovery Filter的Discovery Response发送给UE1;206, Prose Function1 sends a Discovery Response carrying the Discovery Filter to UE1;
207、UE1利用Discovery Filter发现UE2,并获取UE2的广播信息。207. The UE1 discovers the UE2 by using the Discovery Filter, and acquires broadcast information of the UE2.
参阅图3,下面从仅匹配部分应用标识的角度对本发明实施例中的一种发现终端设备的方法进行说明,所述方法包括:Referring to FIG. 3, a method for discovering a terminal device according to an embodiment of the present invention is described below, and the method includes:
301、接近业务实体接收第一终端设备发送的第一请求消息;301. The proximity service entity receives a first request message sent by the first terminal device.
所述第一请求消息携带第二终端设备的应用标识。The first request message carries an application identifier of the second terminal device.
302、所述接近业务实体在未保存所述应用标识对应的有效码字时,根据所述应用标识获取至少一个子应用标识,并为所述至少一个子应用标识配置发现过滤器;302. The proximity service entity obtains at least one sub-application identifier according to the application identifier, and configures a discovery filter for the at least one sub-application identifier, when the valid codeword corresponding to the application identifier is not saved.
可以理解的是,上述应用标识(Prose APP ID)包括多个子应用标识(Subset of Prose APP ID),具体的应用标识的结构如图3-1所示,其中,ProSe App ID=公用陆地移动网(Public Land Mobile Network,PLMN)ID+ProSe App ID name,Subset of Prose APP ID包括部分标签(Label)。It can be understood that the application identifier (Prose APP ID) includes a plurality of sub-application identifiers (Subset of Prose APP ID), and the structure of the specific application identifier is as shown in FIG. 3-1, where ProSe App ID=public land mobile network (Public Land Mobile Network, PLMN) ID + ProSe App ID name, Subset of Prose APP ID includes a partial label (Label).
举例来说,一封发往北京的邮件,由于地址不清晰,可能导致无法知晓该邮件是发往哪个城市的,但如果提取了北京所管辖的区的名称,例如海淀区等,即通过海淀区也可以将该邮件的发往地锁定为北京,由此可见,通过小的地域名称是可以推断出其所属的上层的地域名称的。 For example, a mail sent to Beijing, because the address is not clear, may not be able to know which city the mail is sent to, but if you extract the name of the district under the jurisdiction of Beijing, such as Haidian District, that is through Haidian The zone can also lock the destination of the mail to Beijing. It can be seen that the name of the upper layer of the upper layer can be inferred by the small geographical name.
303、所述接近业务实体向所述第一终端设备发送第一消息,所述第一消息携带所述发现过滤器和所述至少一个子应用标识。303. The proximity service entity sends 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 sub-application identifier may also be placed in the discovery filter, where the at least one application identifier includes a part of the label in the application identifier.
本发明实施例中,接近业务实体在未保存上述有效码字时,从所述应用标识中提取上述至少一个子应用标识,同时为所述至少一个子应用标识配置发现过滤器,实现在无法通过应用标识找到相应的有效码字的前提下,也能通过改应用标识的子应用标识为第一终端设备提供相应的发现过滤器,使得第一终端设备能够根据该发现过滤器发现第二终端设备。In the embodiment of the present invention, the proximity service entity extracts the at least one sub-application identifier from the application identifier when the valid codeword is not saved, and configures a discovery filter for the at least one sub-application identifier, so that the implementation fails. On the premise that the application identifier finds the corresponding valid codeword, the first terminal device can be provided with a corresponding discovery filter by using 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. .
参阅图4,上面对本发明实施例中的一种发现终端设备的方法进行说明,以下对执行上述方法的接近业务实体进行描述,本发明第三方面提供一种接近业务实体,所述接近业务实体40包括:Referring to FIG. 4, a method for discovering a terminal device in the embodiment of the present invention is described above. The following describes a proximity service entity that performs the foregoing method. The third aspect of the present invention provides a proximity service entity, the proximity service entity. 40 includes:
传输模块401,用于接收第一终端设备发送的第一请求消息,所述第一请求消息携带所述第一终端设备的设备标识、第一应用标识和第一指示,所述第一指示用于请求第一发现过滤器;The transmitting
处理模块402,用于在所述接近业务实体未保存所述第一应用标识对应的有效码字时,使用所述设备标识记录对所述第一应用标识的所述第一请求消息;The
所述传输模块401还用于在获得所述第一应用标识对应的有效码字后,将所述处理模块402利用所述有效码字生成的所述第一发现过滤器发送给所述第一终端设备。The transmitting
本发明实施例中,在所述传输模块401接收到携带第一指示的第一发现请求,并在接近业务实体未保存上述有效码字时,处理模块402记录上述对所述第一应用标识的所述第一请求消息,在后续获取到上述有效码字后,根据该有效码字和设备标识生成第一发现过滤器,通过传输模块401返回给第一终端设备。即可实现不论第一终端设备在什么时刻申请的监听流程,接近业务实体都会在获得有效码字后,第一时间返回一个有效的上述第一发现过滤器给第一终端设备,有效避免了第一终端设备无法监听到在发起第一发现请求之后才开始
申请广播的第二终端设备,即使第一设备之前申请过对第二终端设备的监听,从而提高用户体验。In the embodiment of the present invention, when the
可选的,在上述图4所对应的实施例的基础上,本发明实施例的第一个可选实施例中,所述传输模块401还用于:Optionally, on the basis of the foregoing embodiment corresponding to FIG. 4, in the first optional embodiment of the embodiment of the present invention, the
在将所述处理模块402利用所述有效码字生成的第一发现过滤器发送给所述第一终端设备之前,向所述第一终端设备发送第一定时器,所述第一定时器用于指示记录所述对所述第一应用标识的所述第一请求消息的有效期。Before sending, by the
可选的,在上述第一个可选实施例的基础上,本发明实施例的第二个可选实施例中,所述传输模块401具体用于:Optionally, on the basis of the foregoing foregoing optional embodiment, in the second optional embodiment of the embodiment of the present invention, the
在获得所述第一应用标识对应的有效码字后,且所述第一定时器未超时时,将所述第一发现过滤器发送给所述第一终端设备。After obtaining the valid codeword corresponding to the first application identifier, and the first timer does not time out, the first discovery filter is sent to the first terminal device.
可选的,在上述图4所对应的实施例或上述第一个可选实施例的基础上,本发明实施例的第三个可选实施例中,所述传输模块401还用于:Optionally, on the basis of the foregoing embodiment corresponding to FIG. 4 or the foregoing optional embodiment, in the third optional embodiment of the embodiment of the present invention, the
在将所述处理模块402利用所述有效码字生成的第一发现过滤器发送给所述第一终端设备之前,将第二发现过滤器发送至所述第一终端设备,所述第二发现过滤器包括所述第二终端设备的第一码字,所述第一码字中的每一位均为1;Sending, by the
若所述接近业务实体在获得所述第一应用标识对应的有效码字后,且所述第一定时器未超时,则将所述处理模块402利用所述有效码字对所述第二发现过滤器更新得到的所述第一发现过滤器发送给所述第一终端设备。After the proximity service entity obtains the valid codeword corresponding to the first application identifier, and the first timer does not time out, the
参阅图5,一种接近业务实体,所述接近业务实体50包括:Referring to FIG. 5, a proximity service entity, the
传输模块501,用于接收第一终端设备发送的第一请求消息,所述第一请求消息携带第一应用标识;The transmitting
处理模块502,用于在所述接近业务实体未保存所述应用标识对应的有效码字时,根据所述第一应用标识获取至少一个子应用标识,并为所述至少一个
子应用标识配置发现过滤器;The
所述传输模块501还用于向所述第一终端设备发送第一消息,所述第一消息携带所述发现过滤器和所述至少一个子应用标识。The transmitting
可选的,所述至少一个应用标识包括所述第一应用标识中的部分标签。Optionally, the at least one application identifier includes a part of the label in the first application identifier.
本发明实施例中,处理模块502在接近业务实体未保存上述有效码字时,从所述应用标识中提取上述至少一个子应用标识,同时为所述至少一个子应用标识配置发现过滤器,实现在无法通过应用标识找到相应的有效码字的前提下,也能通过改应用标识的子应用标识为第一终端设备提供相应的发现过滤器,使得第一终端设备能够根据该发现过滤器发现第二终端设备。In the embodiment of the present invention, when the proximity service entity does not save the valid codeword, the
本发明还提供一种计算机存储介质,该介质存储有程序,该程序执行时包括上述一种发现终端设备的方法中的部分或者全部步骤。The present invention also provides a computer storage medium storing a program, the program including some or all of the steps of the above method for discovering a terminal device.
本发明还提供一种计算机存储介质,该介质存储有程序,该程序执行时包括上述接近业务实体执行一种发现终端设备的方法中的部分或者全部步骤。The present invention also provides a computer storage medium storing a program that, when executed, includes some or all of the steps of the proximity service entity performing a method of discovering a terminal device.
图6是本发明实施例终端设备60的另一结构示意图。终端设备60可包括至少一个网络接口或者其它通信接口、至少一个接收器601、至少一个发射器602、至少一个处理器603和存储器604,以实现这些装置之间的连接通信,通过至少一个网络接口(可以是有线或者无线)实现该系统网关与至少一个其它网元之间的通信连接,可以使用互联网,广域网,本地网,城域网等。FIG. 6 is another schematic structural diagram of a terminal device 60 according to an embodiment of the present invention. The terminal device 60 may include at least one network interface or other communication interface, at least one
存储器604可以包括只读存储器和随机存取存储器,并向处理器603提供指令和数据,存储器604的一部分还可以包括可能包含高速随机存取存储器(RAM,Random Access Memory),也可能还包括非不稳定的存储器(non-volatile memory)。The memory 604 can include read-only memory and random access memory, and provides instructions and data to the
存储器604存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:The memory 604 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof:
操作指令:包括各种操作指令,用于实现各种操作。Operation instructions: include various operation instructions for implementing various operations.
操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。 Operating system: Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
在本发明实施例中,处理器603通过调用存储器604存储的操作指令(该操作指令可存储在操作系统中),执行如下操作:In the embodiment of the present invention, the
通过接收器601接收第一终端设备发送的第一请求消息,所述第一请求消息携带所述第一终端设备的设备标识、第一应用标识和第一指示,所述第一指示用于请求第一发现过滤器;Receiving, by the
在接近业务实体未保存所述第一应用标识对应的有效码字时,使用所述设备标识记录对所述第一应用标识的所述第一请求消息;When the proximity service entity does not save the valid codeword corresponding to the first application identifier, use the device identifier to record the first request message for the first application identifier;
在获得所述第一应用标识对应的有效码字后,通过发射器602将利用所述有效码字生成的所述第一发现过滤器发送给所述第一终端设备。After obtaining the valid codeword corresponding to the first application identifier, the first discovery filter generated by using the valid codeword is sent by the
可选的,在通过发射器602将利用所述有效码字生成的第一发现过滤器发送给所述第一终端设备之前,通过发射器602向所述第一终端设备发送第一定时器,所述第一定时器用于指示记录所述对所述第一应用标识的所述第一请求消息的有效期。Optionally, before sending, by the
在一些实施方式中,上述处理器603还可以执行以下步骤:In some embodiments, the
在获得所述第一应用标识对应的有效码字后,且所述第一定时器未超时时,通过发射器602将所述第一发现过滤器发送给所述第一终端设备。After obtaining the valid codeword corresponding to the first application identifier, and the first timer does not time out, the first discovery filter is sent by the
在一些实施方式中,上述处理器603还可以执行以下步骤:In some embodiments, the
在通过发射器602将利用所述有效码字生成的第一发现过滤器发送给所述第一终端设备之前,将第二发现过滤器发送至所述第一终端设备,所述第二发现过滤器包括所述第二终端设备的第一码字,所述第一码字中的每一位均为1;Sending a second discovery filter to the first terminal device before transmitting the first discovery filter generated by the valid codeword to the first terminal device by the
若所述接近业务实体在获得所述第一应用标识对应的有效码字后,且所述第一定时器未超时,则通过发射器602将利用所述有效码字对所述第二发现过滤器更新得到的所述第一发现过滤器发送给所述第一终端设备。If the proximity service entity obtains the valid codeword corresponding to the first application identifier, and the first timer does not time out, the
图7是本发明实施例终端设备70的另一结构示意图。终端设备70可包括至少一个网络接口或者其它通信接口、至少一个接收器701、至少一个发射器702、至少一个处理器703和存储器704,以实现这些装置之间的连接通信,通过至少一个网络接口(可以是有线或者无线)实现该系统网关与至少一个其
它网元之间的通信连接,可以使用互联网,广域网,本地网,城域网等。FIG. 7 is another schematic structural diagram of a terminal device 70 according to an embodiment of the present invention. The terminal device 70 can include at least one network interface or other communication interface, at least one
存储器704可以包括只读存储器和随机存取存储器,并向处理器703提供指令和数据,存储器704的一部分还可以包括可能包含高速随机存取存储器(RAM,Random Access Memory),也可能还包括非不稳定的存储器(non-volatile memory)。The memory 704 can include read only memory and random access memory, and provides instructions and data to the
存储器704存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:The memory 704 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof:
操作指令:包括各种操作指令,用于实现各种操作。Operation instructions: include various operation instructions for implementing various operations.
操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。Operating system: Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
在本发明实施例中,处理器703通过调用存储器704存储的操作指令(该操作指令可存储在操作系统中),执行如下操作:In the embodiment of the present invention, the
通过接收器701接收第一终端设备发送的第一请求消息,所述第一请求消息携带第一应用标识;Receiving, by the
在所述接近业务实体未保存所述应用标识对应的有效码字时,根据所述第一应用标识获取至少一个子应用标识,并为所述至少一个子应用标识配置发现过滤器;When the proximity service entity does not save the 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;
并通过发射器702向所述第一终端设备发送第一消息,所述第一消息携带所述发现过滤器和所述至少一个子应用标识。And transmitting, by the
可选的,所述至少一个应用标识包括所述第一应用标识中的部分标签。Optionally, the at least one application identifier includes a part of the label in the first application identifier.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另 外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division, and the actual implementation may have another The manner of division, such as multiple units or components, may be combined or integrated into another system, or some features may be omitted or not performed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
以上对本发明所提供的一种发现终端设备的方法及设备进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 The method and the device for discovering the terminal device provided by the present invention are described in detail. The principles and embodiments of the present invention are described in the following. The description of the above embodiments is only for helping to understand the present invention. The method and its core idea; at the same time, those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In summary, the content of the specification should not be understood as Limitations of the invention.
Claims (18)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201580081743.9A CN107852597B (en) | 2015-08-21 | 2015-08-21 | Method and device for discovering terminal equipment |
| PCT/CN2015/087790 WO2017031629A1 (en) | 2015-08-21 | 2015-08-21 | Method and device for finding terminal device |
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 (1)
| Publication Number | Publication Date |
|---|---|
| WO2017031629A1 true WO2017031629A1 (en) | 2017-03-02 |
Family
ID=58099374
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2015/087790 Ceased WO2017031629A1 (en) | 2015-08-21 | 2015-08-21 | Method and device for finding terminal device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107852597B (en) |
| WO (1) | WO2017031629A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119967530A (en) * | 2022-08-02 | 2025-05-09 | 中国电信股份有限公司 | Path conversion method, device and system |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111836247B (en) * | 2019-08-09 | 2023-12-05 | 维沃移动通信有限公司 | Processing methods and equipment for terminal proximity discovery services |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103856927A (en) * | 2012-12-05 | 2014-06-11 | 电信科学技术研究院 | Method, device and communication system for determining proximity relation between user devices |
| WO2014185649A1 (en) * | 2013-05-12 | 2014-11-20 | 엘지전자 주식회사 | Method for performing proximity service and device for same |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104113890A (en) * | 2013-04-16 | 2014-10-22 | 北京三星通信技术研究有限公司 | Approach discovery method among UE |
| KR20160030970A (en) * | 2013-07-10 | 2016-03-21 | 콘비다 와이어리스, 엘엘씨 | Context-aware proximity services |
| CN104837108B (en) * | 2014-02-07 | 2019-12-31 | 中兴通讯股份有限公司 | Method for device-to-device broadcast communication and user equipment |
| CN104540106B (en) * | 2015-01-13 | 2019-02-12 | 中兴通讯股份有限公司 | It was found that the checking treatment of service code, method of calibration and device |
-
2015
- 2015-08-21 WO PCT/CN2015/087790 patent/WO2017031629A1/en not_active Ceased
- 2015-08-21 CN CN201580081743.9A patent/CN107852597B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103856927A (en) * | 2012-12-05 | 2014-06-11 | 电信科学技术研究院 | Method, device and communication system for determining proximity relation between user devices |
| WO2014185649A1 (en) * | 2013-05-12 | 2014-11-20 | 엘지전자 주식회사 | Method for performing proximity service and device for same |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119967530A (en) * | 2022-08-02 | 2025-05-09 | 中国电信股份有限公司 | Path conversion method, device and system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107852597A (en) | 2018-03-27 |
| CN107852597B (en) | 2020-06-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106412905A (en) | Network slice selection method, UE, MME and system | |
| TWI516160B (en) | An implementation method and device for an adjacent communication service | |
| WO2017125025A1 (en) | Call method, device, system, and storage medium | |
| CN108282846B (en) | A service request processing method and device | |
| US11082910B2 (en) | Systems and methods for prioritizing service set identifiers on a wireless access point | |
| CN111263338A (en) | Network distribution method of Bluetooth Mesh network and related network distribution equipment and system | |
| JP7393428B2 (en) | Method and device for parameter setting | |
| WO2019154034A1 (en) | Communication method, related apparatus and system | |
| WO2016112674A1 (en) | Communication method, terminal, system and computer storage medium | |
| WO2016177106A1 (en) | Dedicated core network selection method and device | |
| EP4304248B1 (en) | Method for transmitting context and communication device | |
| CN108243631B (en) | A method and device for accessing a network | |
| TWI640214B (en) | Network access method, related equipment and system | |
| CN116671137B (en) | A method and device for determining MEC access points | |
| WO2017059707A1 (en) | Method and apparatus for identifying user position | |
| WO2017031629A1 (en) | Method and device for finding terminal device | |
| WO2019136925A1 (en) | Data transmission method and apparatus, and computer storage medium | |
| WO2015135269A1 (en) | Service discovery and authentication method, device, terminal, system, and computer storage medium | |
| CN107534847B (en) | A discovery method and device | |
| EP4322480B1 (en) | Secure identification of applications in communication network | |
| WO2017157255A1 (en) | Local breakout-based data interception method and device | |
| TWI771368B (en) | Communication method, terminal equipment, and access network equipment | |
| WO2019136927A1 (en) | Data transmission method and device, and computer storage medium | |
| US20250240702A1 (en) | Systems and methods for using external identifiers for routing | |
| CN107211479B (en) | Method and device for selecting access network |
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: 15901903 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 15901903 Country of ref document: EP Kind code of ref document: A1 |