Disclosure of Invention
The invention provides a method, a device and equipment for discovering resources, which can discover resources on different equipment and facilitate a user to acquire required resources.
The technical scheme adopted by the invention is as follows:
a method for discovering resources, wherein a procedure performed at a requesting device side comprises: a request sending step: sending a resource query request to a user management platform, wherein the user management platform is used for distributing the resource query request to resource equipment contained in a user equipment management group, so that the resource equipment searches resources related to the resource query request and sends the discovery result back to the user management platform; and a result receiving step: and receiving a query result returned by the user management platform based on the discovery result.
Preferably, before the request sending step, the method further comprises a registration step: sending registration information of the request device to a user management platform, wherein the user management platform judges whether a user device management group associated with the user identifier exists or not based on the user identifier in the registration information; if the user equipment management group associated with the user identifier exists, the user management platform adds the request equipment into the user equipment management group; and if the user equipment management group associated with the user identifier does not exist, the user management platform establishes a user equipment management group and adds the request equipment into the newly established user equipment management group.
Preferably, the request sending step specifically includes: sending a resource query request to a user management platform, so that the user management platform judges whether a user equipment management group associated with a user identifier exists or not based on the user identifier in the resource query request; if the user equipment management group associated with the user identifier exists, the user management platform distributes the resource query request to the resource equipment contained in the user equipment management group; and if the user equipment management group associated with the user identifier does not exist, the user management platform establishes a user equipment management group and adds all resource equipment associated with the user identifier into the newly established user equipment management group.
Preferably, the resource query request includes a resource identification and/or a resource type.
The invention also provides a method for discovering resources, wherein the process executed on the user management platform side comprises the following steps: and (3) resource searching: distributing a resource query request sent by a request device to resource devices included in a user device management group, so that the resource devices send the discovery result back to the user management platform after finding the resources related to the resource query request; and a result returning step: and returning a query result to the requesting device based on the discovery result.
Preferably, before the resource searching step, the method further comprises an association step: receiving registration information sent by a request device, and judging whether a user device management group associated with the user identifier exists or not based on the user identifier in the registration information; if a user equipment management group associated with the user identification exists, adding the request equipment into the user equipment management group; and if the user equipment management group related to the user identifier does not exist, establishing a new user equipment management group, and adding the request equipment into the newly established user equipment management group.
Preferably, the resource searching step specifically includes: receiving a resource query request sent by resource equipment, and judging whether a user equipment management group associated with a user identifier exists or not based on the user identifier in the resource query request; if the user equipment management group associated with the user identifier exists, distributing the resource query request to the resource equipment contained in the user equipment management group; and if the user equipment management group related to the user identification does not exist, establishing a user equipment management group, and adding all resource equipment related to the user identification into the established user equipment management group.
The invention also provides a device for discovering resources, wherein the device is arranged on the side of the request equipment and comprises: the request sending module is used for sending a resource query request to the user management platform, so that the user management platform distributes the resource query request to the resource equipment contained in the user equipment management group, and the resource equipment sends the discovery result back to the user management platform after finding the resource related to the resource query request; and the result receiving module is used for receiving the query result returned by the user management platform based on the discovery result.
Preferably, the apparatus for discovering resources further includes a registration module, configured to: sending registration information of the request device to a user management platform, wherein the user management platform judges whether a user device management group associated with the user identifier exists or not based on the user identifier in the registration information; if the user equipment management group associated with the user identifier exists, the user management platform adds the request equipment into the user equipment management group; and if the user equipment management group associated with the user identifier does not exist, the user management platform establishes a user equipment management group and adds the request equipment into the newly established user equipment management group.
Preferably, the request sending module is further configured to: sending a resource query request to a user management platform, so that the user management platform judges whether a user equipment management group associated with a user identifier exists or not based on the user identifier in the resource query request; if the user equipment management group associated with the user identifier exists, the user management platform distributes the resource query request to the resource equipment contained in the user equipment management group; and if the user equipment management group associated with the user identifier does not exist, the user management platform establishes a user equipment management group and adds all resource equipment associated with the user identifier into the newly established user equipment management group.
The invention also provides a device for discovering resources, wherein the device is arranged at the side of the user management platform and comprises: the resource searching module: the resource query request is sent by the request device to the resource device included in the user device management group, so that the resource device finds the resource related to the resource query request and sends the discovery result back to the user management platform; and a result returning module: for returning a query result to the requesting device based on the discovery result.
Preferably, the apparatus further comprises an association module configured to: receiving registration information sent by a request device, and judging whether a user device management group associated with the user identifier exists or not based on the user identifier in the registration information; if a user equipment management group associated with the user identification exists, adding the request equipment into the user equipment management group; and if the user equipment management group related to the user identifier does not exist, establishing a new user equipment management group, and adding the request equipment into the newly established user equipment management group.
Preferably, the resource searching module is further configured to receive a resource query request sent by a resource device, and determine whether a user device management group associated with a user identifier exists based on the user identifier in the resource query request; if the user equipment management group associated with the user identifier exists, distributing the resource query request to the resource equipment contained in the user equipment management group; and if the user equipment management group related to the user identification does not exist, establishing a user equipment management group, and adding all resource equipment related to the user identification into the established user equipment management group.
The present invention also provides an apparatus comprising a device for discovering resources according to the above.
By adopting the technical scheme, the invention at least has the following advantages: the user management platform finds resources on different resource devices, and convenience of timely acquiring the resources by a user is improved.
Detailed Description
To further explain the technical means and effects of the present invention adopted to achieve the intended purpose, the present invention will be described in detail with reference to the accompanying drawings and preferred embodiments.
The method for discovering resources discovers resources on different resource devices through the user management platform, and is convenient for users to inquire. The method of discovering resources and the respective steps thereof according to the present invention will be described in detail below.
First embodiment
As shown in fig. 1, the flow set by the method for discovering resources in this embodiment executed on the requesting device side includes: request transmission step S10: and sending the resource query request to the user management platform, so that the user management platform distributes the resource query request to the resource equipment contained in the user equipment management group, and the resource equipment sends a discovery result back to the user management platform after finding the resource related to the resource query request. And the user management platform forwards the resource query request to the resource equipment contained in the user equipment management group, the resource equipment searches the required resource according to the resource query request, and if the required resource is found, the resource equipment sends a discovery result back to the user management platform. The discovery result may be a packet including the resource sent by the resource device that found the resource, or may be acknowledgement information that informs that the resource was not found and sent by the resource device that did not find the resource. The resource query request may be a specific resource identifier or a type of resource, as detailed in the fifth embodiment and the sixth embodiment.
As shown in fig. 1, the result receiving step S20: and receiving a query result returned by the user management platform based on the discovery result. And after the user management platform sorts the found results to form query results, the query results are sent back to the request equipment. The query result may be to inform the requesting device: the ue management group includes the resource, a device name and a network address of a resource device to which the resource belongs, and a location of the resource on the resource device. Of course, the query result may also include the returned resource, so that the user may obtain the resource on the requesting device side.
Second embodiment
As shown in fig. 2, this embodiment is also a flow executed on the requesting device side, and on the basis of the first embodiment, before the request sending step S10, the method further includes a registration step S30: sending the registration information of the request device to a user management platform, so that the user management platform judges whether a user device management group associated with the user identifier exists or not based on the user identifier in the registration information; if the user equipment management group associated with the user identifier exists, the user management platform adds the request equipment into the user equipment management group; and if the user equipment management group associated with the user identifier does not exist, the user management platform establishes a user equipment management group and adds the request equipment into the newly established user equipment management group. Therefore, if the user equipment management group associated with the user identification is established before, the request equipment is directly added into the user equipment management group, and the registration of the request equipment is realized. If the user equipment management group associated with the user identifier is not established before, the user equipment management group associated with the user identifier is established according to the user identifier in the registration information, and then the request equipment is added into the user equipment management group, so that the user equipment management group associated with the user identifier is realized, and the registration of the request equipment is also completed, thereby facilitating the subsequent registration of the request equipment associated with the user identifier.
The registration information includes a device identification and a user identification of the requesting device. Joining the requesting device to the user equipment management group is to group the device identification of the requesting device into the user equipment management group. Therefore, a plurality of different users or a plurality of user equipment management groups of the same user can be set on the user management platform, and the user management platform needs to associate the plurality of user equipment management groups belonging to the same user with different user identifications of the user.
Third embodiment
As shown in fig. 3, the method for discovering resources according to the present embodiment is a step performed on the user management platform side, as compared to the first embodiment. The method comprises the following specific steps: resource lookup S40: and distributing the resource query request sent by the request equipment to the resource equipment contained in the user equipment management group, so that the resource equipment sends a discovery result back to the user management platform after finding the resource related to the resource query request. The user management platform receives and forwards the resource devices contained in the user device management group, and the resource devices locally execute a discovery process based on the resource query request so as to discover the resources involved in the resource query request.
The result returns to step S50: and returning the query result to the requesting device based on the discovery result. After the resource acquires the required resource or if the resource device does not find the required resource locally, the resource device sends a discovery result back to the user management platform, and the user management platform returns a corresponding query result to the request device. The description of this step can be referred to the result receiving step S20 of the first embodiment.
Fourth embodiment
As shown in fig. 4, on the basis of the third embodiment, in the method for discovering resources of this embodiment, before the resource searching step S40, an associating step S60 is further included: receiving registration information sent by a request device, and judging whether a user device management group associated with the user identifier exists or not based on the user identifier in the registration information; if the user equipment management group associated with the user identification exists, adding the request equipment into the user equipment management group; and if the user equipment management group related to the user identifier does not exist, establishing a new user equipment management group, and adding the request equipment into the newly established user equipment management group. The user management platform receives registration information of the request device sent by the request device, judges whether a user device management group associated with the user identifier exists or not based on the user identifier in the registration information, and performs corresponding execution steps according to a judgment result. The user's identification may be, for example, the user's cell phone number, name, or identification card. Thereby registering the requesting device with the user management platform on the user management platform.
Fifth embodiment
As shown in fig. 5, this embodiment is a detailed flow description corresponding to the first embodiment: the user management platform receives a resource query request sent by a requesting device, where the resource query request may include a resource type, a resource identifier, and an identifier of a user device management group, that is, a user identifier. It should be noted that the requesting device is already registered in the user equipment management group in advance. The user management platform forwards the resource query request to the resource devices in the user device management group, the resource devices locally execute a discovery process, and a discovery result is returned to the user management platform. The user management platform forwards the resource query request to the resource device, and correspondingly sends the device identifier corresponding to the resource device, so as to ensure that all the resource devices receive the resource query request, so as to execute the process of discovering resources. And the subsequent user management platform sorts the discovery result to obtain a query result and then sends the query result back to the request equipment.
Sixth embodiment
Referring to fig. 6, the resource searching step S40 specifically includes: the user management platform receives a resource query request sent by the resource device, and judges whether a user device management group associated with the user identifier exists or not based on the user identifier in the resource query request. The resource query request includes a resource type and/or a resource identifier, and a user identifier. And according to the user identification, the user management platform judges whether a user equipment management group associated with the user identification exists. And if the user equipment management group associated with the user identification exists, distributing the resource query request to the resource equipment contained in the user equipment management group. If there is no ue management group associated with the ue identifier, a ue management group is created, and all resource devices associated with the ue identifier are added to the created ue management group, and then a resource query request is distributed to resource devices included in the created ue management group, so that the resource devices execute a process of discovering resources.
Correspondingly, the process executed on the requesting device side specifically includes: and sending a resource query request to the user management platform, so that the user management platform judges whether a user equipment management group associated with the user identifier exists or not based on the user identifier in the resource query request. And if the user equipment management group associated with the user identifier exists, the user management platform distributes the resource query request to the resource equipment contained in the user equipment management group. And if the user equipment management group associated with the user identifier does not exist, the user management platform establishes a user equipment management group and adds all resource equipment associated with the user identifier into the newly established user equipment management group. The resource identifier may be a specific name of the resource, the resource type may be whether the resource belongs to a photo or a video, and the identifier of the ue management group may be indicated by the user identity information.
Seventh embodiment
As shown in fig. 7, the apparatus for discovering resources according to the present embodiment is an apparatus class embodiment corresponding to the first embodiment, and is disposed on the requesting device side. The device comprises a request sending module, a resource query module and a resource management module, wherein the request sending module is used for sending the resource query request to the user management platform, and the user management platform distributes the resource query request to the resource equipment contained in the user equipment management group, so that the resource equipment sends back a discovery result to the user management platform after finding the resource related to the resource query request. And the result receiving module is used for receiving the query result returned by the user management platform based on the discovery result.
Preferably, the apparatus for discovering resources further includes a registration module configured to: and sending the registration information of the request device to a user management platform, so that the user management platform judges whether a user device management group associated with the user identifier exists or not based on the user identifier in the registration information. If the user equipment management group associated with the user identification exists, the user management platform requests the equipment to join the user equipment management group. And if the user equipment management group associated with the user identifier does not exist, the user management platform establishes a user equipment management group and adds the request equipment into the newly established user equipment management group.
Further, the request sending module is further configured to: and sending a resource query request to the user management platform, so that the user management platform judges whether a user equipment management group associated with the user identifier exists or not based on the user identifier in the resource query request. And if the user equipment management group associated with the user identifier exists, the user management platform distributes the resource query request to the resource equipment contained in the user equipment management group. And if the user equipment management group associated with the user identifier does not exist, the user management platform establishes a user equipment management group and adds all resource equipment associated with the user identifier into the newly established user equipment management group.
Eighth embodiment
As shown in fig. 7, the device for discovering resources according to the present embodiment is a device class embodiment corresponding to the third embodiment. The device for discovering resources is arranged on the side of the user management platform. The device includes: the resource searching module: the resource query request is sent by the request device to the resource devices included in the user device management group, so that the resource devices send the discovery result back to the user management platform after finding the resources related to the resource query request. And a result returning module: for returning query results to the requesting device based on the discovery results.
Preferably, the resource searching module is further configured to receive a resource query request sent by the resource device, and determine whether a user device management group associated with the user identifier exists based on the user identifier in the resource query request; if the user equipment management group associated with the user identifier exists, distributing the resource query request to the resource equipment contained in the user equipment management group; and if the user equipment management group related to the user identification does not exist, establishing a user equipment management group, and adding all resource equipment related to the user identification into the established user equipment management group.
Further, as shown in fig. 7, the apparatus further includes an association module configured to: receiving registration information sent by a request device, and judging whether a user device management group associated with the user identifier exists or not based on the user identifier in the registration information; if the user equipment management group associated with the user identification exists, adding the request equipment into the user equipment management group; and if the user equipment management group related to the user identifier does not exist, establishing a new user equipment management group, and adding the request equipment into the newly established user equipment management group.
Ninth embodiment
The present embodiment also provides an apparatus comprising the device for discovering resources, which is disposed on the requesting device side according to the foregoing description.
While the invention has been described in connection with specific embodiments thereof, it is to be understood that it is intended by the appended drawings and description that the invention may be embodied in other specific forms without departing from the spirit or scope of the invention.