Resource Guiding Method, Device and Storage Medium
By using virtual resource addresses to determine the action executor and providing recommended information in the oneM2M protocol framework, the problems of low interaction efficiency and time delay between entities are solved, and more efficient and intelligent resource guidance is achieved.
Patent Information
- Application Number
- CN202010576749.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-22
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2040-06-22
AI Technical Summary
In the oneM2M protocol framework, the interaction efficiency between entities is low and time-delayed, resulting in low resource guidance efficiency.
By setting the virtual resource address, determining the action executor based on the virtual resource address, and recommending the next action for the action executor based on the recommended information, thereby realizing resource guidance, improving interaction efficiency and intelligence, and reducing delay.
It improves the interaction efficiency and intelligence between entities, reduces delays, and enhances the accuracy and efficiency of resource guidance.
Smart Images

Figure CN113923243B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular, to a resource guiding method, device, and storage medium. Background Art
[0002] In the oneM2M protocol framework, four types of nodes are defined: Application Dedicated Node (ADN), Application Service Node (ASN), Middle Node (MN), and Infrastructure Node (IN). As Figure 1 shown, each node consists of one or more entities, and the entities include three types: Application Entity (AE), Common Service Entity (CSE), and Network Service Entity (NSE). Among them, AE uses the services provided by CSE and needs to register with CSE. The registration rules are as follows: One AE registers with at most one CSE, such as ASN-CSE, MN-CSE, or IN-CSE; One ASN-CSE registers with at most one other type of CSE, such as MN-CSE or IN-CSE; One MN-CSE registers with at most one other CSE, such as ASN-CSE, IN-CSE.
[0003] When two entities interact, for example, entity A sends a request to entity B, entity A may receive a response indicating that the request fails. At this time, entity A will adjust the parameters and continue to send a request to entity B. If it receives a response indicating that the request fails, entity A will continue to adjust the parameters and send a request to B again.
[0004] It can be seen that the above interaction method between the two entities has low interaction efficiency and long latency. Summary of the Invention
[0005] This application proposes a resource guiding method, device, and storage medium. By setting a virtual resource address, determining the action executor according to the virtual resource address, and recommending the next action to be executed for the action executor according to the recommendation information, the resources are guided through the virtual resource address, thereby improving the interaction efficiency and intelligence of the interaction and reducing the latency.
[0006] One embodiment of this application proposes a resource guiding method, including:
[0007] The first recipient obtains a target request sent by the first requester, where the target request carries resource information and a target address, the target address includes a virtual resource address, and the resource information includes recommendation information;
[0008] The first recipient obtains the recommendation information according to the virtual resource address, and determines an action executor according to the virtual resource address; wherein, the recommendation information is used to recommend the next action to be executed for the action executor.
[0009] In the resource guiding method according to the embodiment of the present application, first, the first recipient obtains a target request sent by the first requester, where the target request carries resource information and a target address, the target address includes a virtual resource address, and the resource information includes recommendation information; the first recipient obtains the recommendation information according to the virtual resource address, and determines an action executor according to the virtual resource address; wherein, the recommendation information is used to recommend the next action to be executed for the action executor. Thus, through the set virtual resource address, the action executor is determined according to the virtual resource address, and the next action to be executed is recommended for the action executor according to the recommendation information, so as to guide the resource through the virtual resource address, improve the interaction efficiency and the intelligence of the interaction, and reduce the latency.
[0010] Another embodiment of the present application proposes a resource guiding device, which is applied to the first recipient and includes:
[0011] A receiving module, configured to obtain a target request sent by the first requester, where the target request carries resource information and a target address, the target address includes a virtual resource address, and the resource information includes recommendation information;
[0012] A determining module, configured to obtain the recommendation information according to the virtual resource address, and determine an action executor according to the virtual resource address; wherein, the recommendation information is used to recommend the next action to be executed for the action executor.
[0013] In the resource guiding device according to the embodiment of the present application, first, a target request sent by the first requester is obtained, where the target request carries resource information and a target address, the target address includes a virtual resource address, and the resource information includes recommendation information; the recommendation information is obtained according to the virtual resource address, and the action executor is determined according to the virtual resource address; wherein, the recommendation information is used to recommend the next action to be executed for the action executor. Thus, through the set virtual resource address, the action executor is determined according to the virtual resource address, and the next action to be executed is recommended for the action executor according to the recommendation information, so as to guide the resource through the virtual resource address, improve the interaction efficiency and the intelligence of the interaction, and reduce the latency.
[0014] Another embodiment of the present application proposes a device, including a processor and a memory;
[0015] Among them, the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the resource guiding method as described in the above embodiments.
[0016] Another embodiment of the present application provides a non-transitory computer-readable storage medium. When the program is executed by a processor, it implements the resource guiding method as described in the above embodiments.
[0017] Additional aspects and advantages of the present application will be given in part in the following description, become apparent in part from the following description, or be learned through the practice of the present application. Description of the Drawings
[0018] The above and / or additional aspects and advantages of the present application will become apparent and be readily understood from the following description of the embodiments in conjunction with the drawings, where:
[0019] Figure 1 It is a schematic structural diagram of a node in the oneM2M protocol framework;
[0020] Figure 2 It is a schematic flowchart of a resource guiding method provided by an embodiment of the present application;
[0021] Figure 3 It is a schematic diagram of designating an action executor provided by an embodiment of the present application Figure 1 ;
[0022] Figure 4 It is a schematic diagram of designating an action executor provided by an embodiment of the present application Figure 2 ;
[0023] Figure 5 It is a schematic diagram of designating an action executor provided by an embodiment of the present application Figure 3 ;
[0024] Figure 6 It is a schematic flowchart of another resource guiding method provided by an embodiment of the present application;
[0025] Figure 7 It is a schematic flowchart of another resource guiding method provided by an embodiment of the present application;
[0026] Figure 8 It is a schematic diagram of the change of inviting a vehicle to join a group provided by an embodiment of the present application;
[0027] Figure 9 It is a schematic diagram of the process of inviting a vehicle to join a group provided by an embodiment of the present application;
[0028] Figure 10Schematic flowchart of another resource guidance method provided by an embodiment of the present application;
[0029] Figure 11 Schematic diagram of the grouping of curtain control motors provided by an embodiment of the present application;
[0030] Figure 12 Schematic diagram of the process of creating a group provided by an embodiment of the present application;
[0031] Figure 13 Schematic flowchart of another resource guidance method provided by an embodiment of the present application;
[0032] Figure 14 Schematic flowchart of another resource guidance method provided by an embodiment of the present application;
[0033] Figure 15 Schematic flowchart of another resource guidance method provided by an embodiment of the present application;
[0034] Figure 16 Schematic diagram of a single recommendation and multiple recommendations provided by an embodiment of the present application;
[0035] Figure 17 Schematic diagram of a reverse recommendation provided by an embodiment of the present application;
[0036] Figure 18 Schematic diagram of a recommendation with further creation results attached provided by an embodiment of the present application;
[0037] Figure 19 Schematic diagram of the structure of a resource guidance device provided by an embodiment of the present application. Detailed implementation manners
[0038] The embodiments of the present application will be described in detail below. Examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals indicate the same or similar elements or elements with the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to explain the present application, but should not be construed as limiting the present application.
[0039] The resource guidance method, device, and storage medium of the embodiments of the present application will be described below with reference to the accompanying drawings.
[0040] In the embodiments of the present application, at least aiming at the problems of low efficiency and long time delay of existing entity interactions, a resource guidance method is proposed.
[0041] The resource guiding method of the embodiment of the present application determines the action executor according to the set virtual resource address, and recommends the next action to be executed for the action executor according to the recommendation information, so as to guide the resources through the virtual resource address, improve the interaction efficiency and intelligence of the interaction, and reduce the latency.
[0042] The resource guiding method of the embodiment of the present application is applied to the receiving party, which is referred to as the first receiving party for the convenience of description. Among them, the first receiving party can be an entity device such as an air conditioner device, a gas monitoring device, an air purification device, etc., or an electronic device installed with an application program, such as a mobile phone, a tablet computer, etc.
[0043] Figure 2 It is a schematic flow chart of a resource guiding method provided by an embodiment of the present application.
[0044] As Figure 2 shown, the resource guiding method includes:
[0045] Step 101, the first receiving party obtains a target request sent by the first requester. Among them, the target request carries resource information and a target address, the target address includes a virtual resource address, and the resource information includes recommendation information.
[0046] In this embodiment, the first requester sends a request to the first receiving party, which is referred to as a target request. Among them, the target request carries resource information and a target address. Among them, the resource information includes recommendation information, and the recommendation information can be placed in the content of the message packet; the target address includes a virtual resource address. Here, the virtual resource address can be used to indicate that the target request is a special request, a request with recommendation information included in the resource information. Then, the first receiving party determines that the target address includes a virtual resource address by parsing the target address, indicating that the target request is a special request carrying recommendation information. If the target address in the target request does not include virtual resource information, it indicates that the received target request is a normal request.
[0047] In specific implementation, the target request can use requests such as create, update, retrieve, delete, etc. For example, a registration request can use a create request, a group entry request can use an update request, and an information acquisition request can use a retrieve request, etc.
[0048] For the virtual resource address, for example, set the virtual resource address <recommandOpereation>, and the receiving party undertakes the exclusive request of the requester through the virtual resource address. If the target address does not include virtual resource information, it indicates that the received target request is a normal request.
[0049] Step 102, the first recipient obtains the recommendation information according to the virtual resource address and determines the action executor according to the virtual resource address; wherein, the recommendation information is used to recommend the next action to be executed by the action executor.
[0050] In this embodiment, when the target address carried in the target request includes a virtual resource address, it indicates that the target request is a special request carrying recommendation information. Then, the first requester can obtain the recommendation information according to the virtual resource address and determine the action executor.
[0051] For example, the target address is <CSEBase> / <recommandOpereation>, and this target address includes the virtual resource address <recommandOpereation>. According to this target address, the action executor is determined to be CSE; the target address <CSEBase> / <AE> / <recommandOpereation> indicates that the action executor is AE under CSEBase; <CSEBase> / <remoteCSE> / <recommandOpereation> indicates that the action executor is remoteCSE, which is a CSE related to the CSE corresponding to CSEBase.
[0052] It should be noted that CSE and CSEBase are in one-to-one correspondence, and there can be multiple AEs under CSEBase. For example, if CSEBase is an automotive gateway, each sensor connected to the automotive gateway can be regarded as an AE. Then, there are multiple AEs (CSEs) under the automotive gateway (CSEBase).
[0053] The following can be combined with Figure 3 - Figure 5 to illustrate the specification of the action executor. Figure 3 This is a schematic diagram of specifying the action executor provided by the embodiment of the present application. Figure 1 ; Figure 4 This is a schematic diagram of specifying the action executor provided by the embodiment of the present application. Figure 2 ; Figure 5 This is a schematic diagram of specifying the action executor provided by the embodiment of the present application. Figure 3 .
[0054] Figure 3 In [diagram], CSE is the first recipient and AE is the first requester.
[0055] AE sends a request to the corresponding CSE. Among them, the request destination is <CSEBase> / <recommandOpereation>. Obviously, CSE is the action executor. Then, CSE processes locally and sends a response to AE, that is, CSE is the first recipient and also the action executor.
[0056] Figure 4 Among them, CSE1 is the first recipient, AE is the first requester, and CSE2 has been registered with CSE1. Among them, CSE2 is the remoteCSE of CSE1. AE sends a request to the corresponding CSE1. Among them, the request target is <CSEBase> / <remoteCSE> / <recommandOpereation>. According to the virtual resource address, CSE1 hands the request to the remoteCSE for processing, and the remoteCSE makes a response. That is, the remoteCSE is the action executor.
[0057] Figure 5 Among them, AE1 is the first requester, CSE is the first recipient, AE2 has been registered with CSE. AE1 sends a request to the corresponding CSE. According to the request target <CSEBase> / <AE> / <recommandOpereation>, it is determined that the action executor is AE2 under CSE. Then CSE hands the request to AE2 for response, or CSE responds instead. Among them, AE1 and AE2 can be regarded as two AEs under this CSE.
[0058] In this embodiment, the recommendation information is used to recommend the next action to the action executor. That is to say, the first requester guides the recommendation information to the action executor through the virtual resource address, so that the action executor can determine the next action recommended by the first requester according to the recommendation information.
[0059] For example, the recommendation information is information about a group, such as the identifier of the group, the information of each member in the group, etc., and the information of the group includes the identifier of the first recipient. According to this recommendation information, it can be determined that the first requester recommends that the first recipient join this group.
[0060] For another example, the recommendation information is the priority of the action. Then according to this recommendation information, it is determined that the first recipient recommends setting the action priority.
[0061] For another example, when an action resource is established, although the establishment is successful, but CSE finds that it is futile to establish relevant monitors and counters for such an action resource. CSE can suggest to its establisher to delete it. At this time, a delete request can be used to send its suggestion to the establisher.
[0062] For another example, when CSE finds that an AE has repeated operations and is very frequent, such as the AE often periodically obtains the latest data of a certain group of containers, and all use the single request sending mode. At this time, it can request the AE to establish a group for the relevant container resources to ensure the most efficient operation.
[0063] For another example, during cross-domain operations, the address corresponding to the target domain <CSEBase> is recommended to the corresponding main CSE, and the recommended main CSE can directly register with the target domain <CSEBase>.
[0064] It can be seen that various recommended information can be received through the virtual resource address, improving the diversity of the recommended information.
[0065] It should be noted that the content of the above recommended information is only an example and can be set according to needs, and should not be regarded as a limitation to this application.
[0066] In the embodiments of this application, through the set virtual resource address, the action executor is determined according to the virtual resource address, and the next action to be executed is recommended to the action executor according to the recommended information, so as to guide the resources through the virtual resource address, improving the interaction efficiency and the intelligence of the interaction, and reducing the latency.
[0067] The following takes the example of a recommended recipient joining a group for illustration. In an embodiment of this application, if the target request is an update request, i.e., an update request, and the recommended information is the information of the first target group, and the information of the first target group includes the identifier of the first target group and the member list of the first target group, where the member list of the first target group includes the identifier of the first recipient, then the recommended information is used to recommend to the action executor the action of joining the first target group. The following combines Figure 6 for illustration. Figure 6 FIG. is a schematic flowchart of another resource guiding method provided by the embodiments of this application.
[0068] As Figure 6 shown, the resource guiding method includes:
[0069] Step 201, the first recipient obtains the target request sent by the first requester, where the target request is an update request and the recommended information is the information of the first target group.
[0070] In this embodiment, the first recipient receives an update request from the first requester. The update request includes resource information and a target address. The target address includes a virtual resource address. The recommended information included in the resource information is the information of the first target group, and the information of the first target group includes the identifier of the first target group, the member list of the first target group, etc. Among them, the member list of the first target group includes the identifiers of the existing members of the first target group and the identifier of the first recipient. In this embodiment, the recommended information is used to recommend to the action executor the action of joining the first target group.
[0071] Step 202, the first recipient obtains the recommended information according to the virtual resource address, resolves the target address, and determines that the action executor is the first recipient according to the virtual resource address.
[0072] After the first recipient receives the update request, it resolves the target address and determines that the virtual resource address determination action executor in the target address is the first recipient, that is, the first recipient is the action executor. That is to say, the first requester recommends that the first recipient execute the action of joining the first target group.
[0073] Step 203, the first recipient sends a first response to the first requester according to the recommendation information.
[0074] In this embodiment, the recommendation information is used for the first requester to recommend that the first recipient execute the action of joining the first target group. The first recipient analyzes according to the recommendation information to determine whether to accept the recommendation of the first requester, and sends a response to the first requester, which is called the first response here, so that the first requester determines whether the first recipient executes the action of joining the first target group according to whether the first response contains the identifier of the first recipient.
[0075] Specifically, if the first response includes the identifier of the first recipient, it means that the first recipient agrees to join the first target group and will execute the action of joining the first target group; if the first response does not include the identifier of the first recipient, it means that the first recipient does not agree to join the first target group and does not execute the action of joining the first target group.
[0076] It should be noted that the first requester here can be the CSE, any member of the first target group, or the leading member in the first target group.
[0077] In the embodiment of the present application, since the target request is an update request, the recommendation information is the information of the first target group, and the information of the first target group includes the identifier of the first target group and the member list of the first target group. Among them, the member list of the first target group includes the identifier of the first recipient. Then, the recommendation information is used to recommend to the action executor to execute the action of joining the first target group. The first recipient resolves the target address and determines that the action executor is the first recipient according to the virtual resource address in the target address. The first recipient sends a first response to the first requester according to the recommendation information, so that the first requester determines whether the first recipient executes the action of joining the first target group according to whether the first response includes the identifier of the first recipient. Thus, the first recipient obtains the recommendation information according to the virtual resource address, and determines whether to execute the action of joining the first target group recommended by the first requester according to the recommendation information, which not only realizes inviting an entity to join a group, but also improves the interaction efficiency between entities.
[0078] In an embodiment of the present application, if the above Figure 6In the illustrated embodiment, the first response sent to the first requester includes the identifier of the first recipient, indicating that the first requester agrees to join the first target group. After that, a group joining request can be sent to the first requester to apply to join the first target group. The following will be described in conjunction with Figure 7 for illustration. Figure 7 FIG. is a schematic flowchart of another resource guiding method provided by an embodiment of the present application.
[0079] As Figure 7 shown, the resource guiding method includes:
[0080] Step 301, the first recipient obtains a target request sent by the first requester, where the target request is an update request, and the recommended information is information about the first target group.
[0081] Step 302, the first recipient obtains recommended information according to the virtual resource address, resolves the target address, and determines that the action executor is the first recipient according to the virtual resource address.
[0082] Step 303, the first recipient sends a first response to the first requester according to the recommended information.
[0083] In this embodiment, steps 301 - 303 are similar to steps 201 - 203 above, so they will not be elaborated here.
[0084] Step 304, the first recipient sends an update request to the first requester, where the update request includes the identifier of the first recipient.
[0085] In this embodiment, if the identifier of the first recipient is included in the member list of the first target group in the first response sent to the first requester, after sending the first response to the first requester, an update request can be sent to the first requester to apply to join the first target group.
[0086] Among them, the update request includes information about the first target group, such as the identifier of the first target group, information about each existing member in the first target, etc., and also includes the identifier of the first recipient.
[0087] Step 305, the first recipient receives the corresponding response sent by the first requester.
[0088] After receiving the update request from the first requester, the first requester adds the first recipient to the first target group according to the identifier of the first recipient included in the corresponding response, generates a corresponding response, and sends it to the first recipient. Thus, the first recipient receives the corresponding response and can determine that it has joined the first target group according to the corresponding response.
[0089] The following will be described in conjunction with Figure 8 and Figure 9 for illustration.Figure 8 Schematic diagram of the change of inviting a vehicle to join a group provided by an embodiment of the present application; Figure 9 Process schematic diagram of inviting a vehicle to join a group provided by an embodiment of the present application.
[0090] Figure 8 Vehicles 1, 2, and 3 belong to the same fleet A, and there is also a separate vehicle a. Figure 8 In, vehicle 2 is an application entity under CSE2, vehicle a is an application entity under CSEa, and registration has been performed between CSEa and CSE0.
[0091] As Figure 9 shown, when fleet A discovers vehicle a, vehicle 2 in the fleet sends an information acquisition request to vehicle a to obtain information about vehicle a, such as the destination, the type of goods carried, etc. Vehicle a sends a corresponding information response to vehicle 2. Based on the information of vehicle a obtained, vehicle 2 sends an update request to vehicle a to invite vehicle a to join the group, that is, to invite vehicle a to join fleet A. Among them, the update request includes information about fleet A, such as the destination of fleet A, the type of goods carried by each vehicle in the fleet, and so on. After receiving the update request, vehicle a determines to join fleet A by analyzing the information of fleet A and itself, and sends a group joining response to vehicle 2 agreeing to join fleet A.
[0092] Then, vehicle a sends a group joining request to vehicle 2 to apply to join fleet A. After receiving the group joining request, vehicle 2 sends a group joining response to vehicle a, agreeing to vehicle a to join fleet A.
[0093] After that, CSEa cancels the registration in CSE0 and sends a registration request to CSE2 to which vehicle 2 belongs. CSE2 returns a registration response agreeing to the registration. At this time, vehicle a successfully joins fleet A, as Figure 7 shown.
[0094] It should be noted that Figure 9 the order of the registration request and the group joining request can be swapped, that is, the registration request can be sent first, and after successful registration, the group joining request can be sent to apply to join the group.
[0095] In an embodiment of the present application, if the member list of the first target group in the first response includes the identifier of the first recipient, after sending the first response to the first requester, an update request can also be sent to the first requester, where the update request includes the identifier of the first recipient, and then the corresponding response sent by the first requester is received. Thus, after agreeing to join the group, the first recipient sends an update request to the first requester to apply to join the group, realizing an interactive operation according to the recommended action of joining the group recommended by the first requester, and improving the efficiency and intelligence of the interaction between entities.
[0096] In practical applications, the control of some devices is usually the same. For example, all the curtains on the west side of the office are closed in the afternoon. To improve the control efficiency, in an embodiment of the present application, the first requester may send a request to create a group to the first receiver, that is, recommend that the action executor create a new group. The following will be described in conjunction with Figure 10 for illustration. Figure 10 FIG. 4 is a schematic flowchart of another resource guiding method provided by an embodiment of the present application.
[0097] As Figure 10 shown, the resource guiding method includes:
[0098] Step 401, receiving a target request sent by the first requester through a virtual resource interface, where the target request is a creation request, and the recommendation information is the identifiers of the members in the second target group.
[0099] In this embodiment, the first receiver obtains that the target request sent by the first requester is a creation request, that is, a creat request. Among them, the recommendation information in the creation request is the identifiers of the members in the second target group, and the recommendation information is used to recommend to the action executor to perform the action of creating the second target group. Here, each member refers to the members included in the second target group recommended by the first requester to be newly created, that is, it is recommended to form these members into a group.
[0100] Step 402, the first receiver obtains the recommendation information according to the virtual resource address, resolves the target address, and determines the action executor as the first action executor according to the virtual resource address.
[0101] The first receiver obtains the recommendation information according to the virtual resource address in the target address, resolves the target address, and determines the action executor as the first action executor according to the virtual resource address, where the first action executor is different from the first receiver. In this embodiment, the recommendation information is used to recommend to the first action executor to perform the action of creating the second target group.
[0102] Step 403, the first receiver forwards the target request to the first action executor.
[0103] After determining the first action executor, the first receiver forwards the target request to the first action executor, and the first action executor determines, according to the recommendation information, that the next action recommended by the first requester for it to perform is to create the second target group.
[0104] Step 404, the first receiver obtains a second response from the first action executor.
[0105] After the first action executor receives the target request, it determines whether to accept the recommendation of the first requester to create the second target group based on the identities of the members in the second target group and its own status, such as whether it has joined other groups. If the first action executor accepts the recommendation, it creates the second target group, or does not accept the recommendation, generates a second response, and sends the second response to the first recipient. The second response includes information on whether the second target group is successfully created.
[0106] Step 405, the first recipient sends the second response to the first requester.
[0107] After obtaining the second response from the first action executor, the first recipient sends the second response to the first requester, so that the first requester can determine whether the second target group is successfully created based on whether the second response includes information about the second target group.
[0108] Specifically, if the second response includes information that the second target group is successfully created, it is determined that the first action executor accepts the recommendation of the first requester and successfully creates the second target group. If the second response includes information that the second target group is not successfully created, it can be determined that the first action executor does not perform the next action recommended by the first requester.
[0109] Alternatively, it can also be determined whether the second target group is successfully created based on whether the second response contains information about the second target group. If the second response includes information such as the identity of the second target group and the identities of the members of the second target group, it can be considered that the second target group is successfully created; if the second response does not contain information about the second target group, it means that the second target group is not successfully created.
[0110] It should be noted that the first requester can be an application provided by a management platform or a manufacturer, and the first recipient can be a specific physical device or a management device for each group member.
[0111] Taking the office scenario as an example, the device management iPad held by the administrative staff sends the device instructions to the management server, and the management server performs the operations of the instructions:
[0112] Every morning, all the smart curtains facing east in the office are closed (100 curtain control motors, sending instructions separately);
[0113] Every morning, all the smart curtains facing west in the office are opened (100 curtain control motors, sending instructions separately);
[0114] Every afternoon, all the smart curtains facing east in the office are opened (100 curtain control motors, sending instructions separately);
[0115] Every afternoon, all the intelligent curtains facing west in the office are closed (100 curtain control motors, sending commands separately).
[0116] Every night, all the intelligent curtains facing east in the office are opened (100 curtain control motors, sending commands separately).
[0117] Every night, all the intelligent curtains facing west in the office are opened (100 curtain control motors, sending commands separately).
[0118] Based on the instructions of the management server, the CSE on the management server can perform operations on the recommended group according to the historical command request records. In this scenario, for the intelligent curtains facing east in the office (100 curtain control motors), they form Group 1, and for the intelligent curtains facing west in the office (100 curtain control motors), they form Group 2. The information about the recommended creation of the group is sent to the management AE, and then sent by the management AE to the corresponding management CSE, and the management CSE creates the group, as Figure 11 shown Figure 11 is the schematic diagram of the grouping of curtain control motors provided by the embodiment of the present application.
[0119] The following combines Figure 12 to illustrate the process of creating a group for the intelligent curtains facing east in the office (100 curtain control motors). Figure 12 is the schematic diagram of the process of creating a group provided by the embodiment of the present application.
[0120] As Figure 12 shown, both the management AE and the management AE2 are registered on the management CSE. The management AE2 is the first requestor, the management CSE is the first receiver, and the management AE is the first action executor. The management AE2 sends a creation request to the <recommandOpereation> position on the corresponding CSEBase, which is <CSEBase> / <AE> / <recommandOpereation>. Among them, the content of the creation request includes information about the recommended establishment of the group, such as resourceID: <CSEBase> / <AE> / <group1>, and memberIDs: IDs of 100 east-facing curtain control motor entities. Through the resourceID, the receiver of the creation request can know the recommended establishment location, and through the memberIDs, the receiver of the creation request can know which entities form the <group1> members, which are 100 east-facing curtain control motor entities.
[0121] The management CSE determines the <recommandOpereation> position in the address according to the target address information in the creation request, and determines the specified management AE for forwarding.
[0122] The AE analyzes and responds with whether to establish a group. If it agrees, the response contains information recommending the establishment of a group; if it refuses, the content of the response does not contain information recommending the establishment of a group and is empty. Figure 12 In this case, the management AE agrees to group 100 east-facing curtains together, generates a response, and sends the response agreeing to establish the group to the management CSE. The management CSE forwards the response agreeing to establish the group to the management AE2.
[0123] When the management AE sends a request to create <group1> to the management CSE, the request includes the group information resourceID: <CSEBase> / <AE> / <group1>, and memberIDs: IDs of 100 east-facing curtain control motor entities. The management CSE establishes a group according to the request to create <group1>, and sends a response agreeing to the group and indicating that the group has been established to the requester.
[0124] Among them, in the response agreeing to establish the group and indicating that the group has been established, which is forwarded by the management CSE, the information of the sender should be forwarded to the requester at the same time. Here, the sender is the management AE, to avoid conflicts with the composition of the response agreeing to establish the group and indicating that the group has been established. The content information is the information recommended by the requester at that time; later, if the requester wants to verify the establishment situation, it can directly obtain the address of the recommended <group1> at that time to obtain whether the establishment was successful.
[0125] Among them, in the response agreeing to establish the group and indicating that the group has been established, which is claimed by the CSE, the sender of the response at this time is the management CSE, and it is the same as the response to establish the group sent by the management AE to the management CSE in composition, except that the information of the recipient is changed and the content information is the same. In this way, when the information sent from the management CSE is sent to the requester, the requester can know that the relevant management AE has agreed to its recommendation and successfully established a group.
[0126] In practical applications, products from different manufacturers may control the same object. For example, when a gas monitoring device detects that the gas concentration exceeds the warning threshold, it triggers the door and window controller to open the window for ventilation; when an air monitoring and purification device detects that the air quality PM2.5 concentration exceeds the warning threshold, it triggers the door and window controller to close the window for enclosure. It can be seen that both the gas monitoring device and the air monitoring and purification device control the door and window controller.
[0127] In order to reduce the gap between products of different manufacturers and improve the intelligence of control, in one embodiment of the present application, before the first recipient obtains the target request sent by the first requester, a creation action resource request for the control object may be sent to the first requester.
[0128] Among them, the creation action resource request includes information about the first action resource. Here, the action resource refers to an action on the control object. For example, in the above example, the window and door controller is the control object, and the action resource can be opening the window.
[0129] After receiving the creation action resource request, the first requester may generate a response based on the actions already created for the control object and the first action resource. Here, it is called the third response, and then send the third response to the first recipient. Thus, the first recipient obtains the third response to the creation action resource request from the first requester, and can determine whether the first action resource is successfully created according to the third response.
[0130] Taking the gas monitoring device and the air monitoring and purification device as an example, the service layer is the first requester, and the gas monitoring device or the air monitoring and purification device can be used as the first recipient. Specifically, the gas monitoring device may send a request to create an opening window action to the service layer, and the air monitoring and purification device may send a request to create a closing window action to the service layer. Thus, the gas monitoring device and the air monitoring and purification device can obtain corresponding responses.
[0131] In the embodiment of the present application, before the first recipient obtains the target request sent by the first requester, a creation action resource request for the control object may be sent to the first requester, where the creation action resource request includes information about the first action resource; obtain the third response to the creation action resource request from the first requester. Thus, a creation action resource request can be sent to the requester, and the requester can create the action resource, thereby reducing the gap between products of different manufacturers.
[0132] In practical applications, the third response received by the first recipient may be a response indicating that the first action resource creation fails. Based on this, in one embodiment of the present application, if the third response is a failure response, the first requester may send recommendation information to the first recipient to recommend that the first recipient obtain information about other action resources for the same control object. The following will be described in conjunction with 13. Figure 13 It is a schematic flowchart of another resource guidance method provided by the embodiment of the present application.
[0133] As Figure 13 shown, the resource guidance method includes:
[0134] Step 501: Obtain a target request sent by a first requester. The target request is an information acquisition request, and the recommended information in the information acquisition request is information about a second action resource.
[0135] In this embodiment, a first receiver sends a creation action resource request for a control object to the first requester, where the creation action resource request includes information about a first action resource.
[0136] The first requester determines that there is a conflict between the two action resources based on the first action resource and the already created second action resource, and at this time, a first response sent to the first receiver is a failure response. It can be seen that the failure response is generated by the first requester when there is a conflict between the first action resource and the already created second action resource.
[0137] The second action resource here can be created by the first requester according to a creation action resource request for the control object sent by other entity devices to the first requester. That is to say, both the first action resource and the second action resource can be action resources for the control object. For example, for a door and window controller, the first action resource is to open the window, and the second action resource is to close the window.
[0138] After sending the failure response to the first receiver, the first requester sends a target request to the first receiver. Here, the target request is an information acquisition request, and the target address of the target request includes a virtual resource address. The recommended information in the information acquisition request is information about the second action resource, and the recommended information is used to recommend to the action executor to perform the action of acquiring the information about the second action resource.
[0139] Step 502: The first receiver obtains the recommended information according to the virtual resource address, resolves the target address, and determines that the action executor is the first receiver according to the virtual resource address.
[0140] The first receiver resolves the target address and determines that the action executor is the first receiver according to the virtual resource address included in the target address. That is to say, the first receiver is also the action executor, and the first requester recommends that the first receiver perform the action of acquiring the information about the second action resource. Step 503: The first receiver sends a fourth response to the first requester according to the information about the second action resource.
[0141] After obtaining the information acquisition request, the first receiver generates a fourth response according to the information acquisition request, such as the type of the information acquisition request, the information about the second action resource, etc. Then, the fourth response is sent to the first requester. Here, the fourth response is used by the first receiver to inform the first requester that it has received the information acquisition request sent by the first requester.
[0142] In the embodiments of the present application, when the action resource to be created conflicts with the already created action resource and the creation fails, a recommended operation for obtaining the already created action resource can be received to view the already created actions, so that the reason for the failure of the action resource requested to be created by oneself can be analyzed, thereby improving the interaction efficiency and intelligence between entity devices and reducing latency.
[0143] In an embodiment of the present application, after the first recipient sends a fourth response to the first requester, the first recipient may send a first acquisition request to the first requester to obtain information about the second action resource.
[0144] After obtaining the first acquisition request for obtaining the second action resource, the first requester sends a response corresponding to the first acquisition request to the first recipient, and the response includes information about the second action resource. Thus, the first recipient can obtain the second action resource, and then update the first action resource according to the second action resource, that is, create a new first action resource to avoid the problem of conflict between the first action resource and the second action resource.
[0145] After updating the first action resource, the first recipient sends an updated request for creating an action resource to the first requester, where the updated request for creating an action resource includes information about the updated first action resource, so that the first requester creates a new first action resource, so that the new first action resource does not conflict with the second action resource. For example, the trigger condition of the first action resource can be increased, so that the first action resource does not conflict with the second action resource.
[0146] Further, if the first requester has already created multiple action resources, and the action resource requested to be created by the first recipient conflicts with the multiple already created action resources, then the recommended information in the information acquisition request sent to the first recipient is the identifiers of multiple actions, recommending that the first recipient perform the action of obtaining the multiple already created action resources. If the first recipient accepts the recommendation, then a request is sent to the first requester to obtain multiple action resources, so as to update the first action resource according to the multiple action resources, and request to create the updated first action resource again, so that the created updated first action resource conflicts with the multiple already created action resources.
[0147] In an embodiment of the present application, after the first requesting party sends a fourth response, a first acquisition request is sent to the first requesting party, and a response corresponding to the first acquisition request sent by the first requesting party is received. The response corresponding to the first acquisition request includes information about the second action resource. Thus, after the first receiving party accepts the recommendation of the first requesting party to execute the action of acquiring the second action resource, the second action resource can be acquired by sending an acquisition request to the first requesting party, so as to update the first action resource according to the second action resource, avoid conflicts between the two action resources, thereby improving the interaction efficiency and intelligence and reducing the latency.
[0148] In an embodiment of the present application, if the action resource requested to be created by the first receiving party fails to be created, the first requesting party may recommend a new first action resource to the first receiving party. The following is described in conjunction with Figure 14 for illustration. Figure 14 FIG. is a schematic flow chart of another resource guiding method provided by an embodiment of the present application.
[0149] As Figure 14 shown, the resource guiding method includes:
[0150] Step 601, obtain a target request sent by the first requesting party, where the target request is a creation request, and the recommendation information in the creation request is a new first action.
[0151] In this embodiment, the first receiving party sends a request to create an action resource for the control object to the first requesting party, where the request to create an action resource includes information about the new first action resource.
[0152] The first requesting party determines that there is a conflict between the two action resources based on the first action resource and the already created second action resource, and at this time, a third response sent to the first receiving party is a failure response. It can be seen that the failure response is generated by the first requesting party when there is a conflict between the first action resource and the already created second action resource.
[0153] The second action resource here may be created by the first requesting party according to a request to create an action resource for the control object sent by other entity devices to the first requesting party. That is to say, the first action resource and the second action resource may be action resources for the same control object. For example, for a door and window controller, the first action resource is to open the window, and the second action resource is to close the window.
[0154] After the first requester sends a failure response to the first recipient, it sends a target request to the first recipient. Here, the target request is a creation request. Among them, the recommendation information in the creation request is the information of the new first action resource. Then, the recommendation information in the creation request is used to recommend to the action executor to perform the action of creating a new first action resource. The new first action resource is determined by the first requester based on the first action resource and the created second action resources. The new first action resource does not conflict with the created action resources. The created second action resources here may be one or more.
[0155] Step 602: The first recipient obtains the recommendation information according to the virtual resource address, resolves the target address, and determines that the action executor is the first recipient according to the virtual resource address.
[0156] The first recipient resolves the target address and determines that the action executor is the first recipient according to the virtual resource address included in the target address. That is to say, the first recipient is also the action executor, and the first requester recommends that the first recipient perform the action of creating the information of the new first action resource.
[0157] Step 603: The first recipient sends a fifth response to the first requester according to the information of the new first action resource.
[0158] In this embodiment, the first recipient generates a fifth response according to the type of the request, the carried new first action resource, etc., and sends it to the first requester. Here, the fifth response is for the first recipient to inform the first requester that it has received the creation request sent by the first requester.
[0159] After sending the fifth response to the first requester, the first action resource can be updated according to the information of the new first action resource carried in the creation request, and then an updated creation action resource request is sent to the first requester. Among them, the updated creation action resource request includes the information of the updated first action resource, so that the first requester can create the updated first action resource according to the updated creation action resource request.
[0160] In the embodiment of the present application, if a failure response to the creation action request is obtained from the first requester, an update request containing the recommendation information as the new first action resource can be received from the first requester, so as to obtain the information of the new first action resource sent by the first requester. Thus, the first recipient constructs a new first action resource according to the obtained information of the new first action resource to re-request the creation of a new first action resource, improving the interaction efficiency and the intelligence of the interaction and reducing the latency.
[0161] For the scenario of creating a trigger action, in an embodiment of the present application, when the first recipient requests the successful creation of the first action resource created by the first recipient, and then the first requester also successfully creates the third action resource, at this time, the first requester may recommend that the action executor obtain information about the third action resource. The following is combined with Figure 15 for description. Figure 15 FIG. is a schematic flowchart of another resource guidance method provided by an embodiment of the present application.
[0162] As Figure 15 shown, the resource guidance method includes:
[0163] Step 701, obtain a target request sent by the first requester, where the target request is an information acquisition request, and the recommended information in the information acquisition request is information about the third action resource.
[0164] In this embodiment, the first recipient sends a first create action resource request for the control object to the first requester, where the create action resource request includes information about the third action resource.
[0165] The first requester creates the first action resource according to the create action resource request, and the third response generated and sent to the first recipient is a successful response.
[0166] After that, the first recipient obtains the target request. The target request is an information acquisition request, and the recommended information in the information acquisition request includes information about the third action resource. The recommended information is used to recommend to the action executor to perform the action of obtaining information about the third action resource. The third action resource is created by the first requester after creating the first action resource and is for the same control object as the first action resource.
[0167] Step 702, the first recipient obtains the recommended information according to the virtual resource address, resolves the target address, and determines that the action executor is the first recipient according to the virtual resource address.
[0168] The first recipient resolves the target address and determines that the action executor is the first requester according to the virtual resource address included in the target address. That is, the first requester recommends that the first recipient perform the action of obtaining information about the third action resource.
[0169] Step 703, the first recipient sends a sixth response to the first requester according to the information about the third action resource.
[0170] The first recipient can determine that the first requester recommends it to obtain information about the third action resource to view the third action resource according to the information about the third action resource included in the information acquisition request.
[0171] The first recipient obtains requests according to the type information of the target request, information such as the information of the third action resource in the information acquisition request, etc., and generates a sixth response. Then, the sixth response is sent to the first requester, so that the first requester can learn that the first recipient has received the information acquisition request sent by it.
[0172] After the first recipient sends the sixth response to the first requester, the first recipient may send a second acquisition request to the first requester to view the information of the third action resource. The first recipient receives the response corresponding to the second acquisition request sent by the first requester, where the response corresponding to the second acquisition request includes the information of the third action resource. Then, the first recipient updates the first action resource according to the information of the third action resource. Then, a updated create action resource request is sent to the first requester, where the updated create action resource request includes the information of the updated first action resource, so that the first requester creates a new first action resource.
[0173] In the embodiments of the present application, after the first action resource for the control object is created, if the first requester receives a create action resource request for the control object sent by other devices, the create action resource request includes a second action resource. To avoid conflicts between the first action resource and the second action resource, after the second action resource is created, a reverse recommendation can be made to the first recipient that requests to create the first action resource, recommending it to view the second action resource, and thus making a reverse recommendation, so that the first recipient updates the first action resource according to the second action resource, thereby avoiding conflicts between the first action resource and the second action resource, improving the interaction efficiency and the intelligence of the interaction, and reducing the latency.
[0174] The following combines Figure 16 、 17 、18 to illustrate the above embodiments. Figure 16 is a schematic diagram of a single recommendation and multiple recommendations provided by an embodiment of the present application; Figure 17 is a schematic diagram of a reverse recommendation provided by an embodiment of the present application; Figure 18 is a schematic diagram of a recommendation with further creation results provided by an embodiment of the present application.
[0175] Figure 16 In, the gas monitoring device 810 sends a request to create <Action 1> to the service layer 820, where the target of this Action 1 is the door and window controller. The service layer creates Action 1 according to the request to create <Action 1> and sends the create <Action 1> response to the gas monitoring device 810. Among them, the service layer 820 may be a smart home management platform.
[0176] The air monitoring and purification device 830 sends a request to create <Action 1> to the service layer 82. Since there is a conflict between Action 1 and Action 2, the service layer 820 sends a failure response for creating <Action 2> to the air monitoring and purification device 830. Among them, the target of this Action 2 is the door and window controller.
[0177] The service layer 820 sends a request to recommend obtaining <Action 1> to the air monitoring and purification device 830, that is, recommends that the air purification device 830 perform the action of obtaining Action 1, so as to view Action 1. The air monitoring and purification device 830 determines to accept the recommendation of the service layer 820 according to the request to recommend obtaining <Action 1>, and sends a response to recommend obtaining <Action 1> to the service layer 820. According to this response, the service layer 820 determines that the air purification device 830 has agreed to its own recommendation.
[0178] The air monitoring and purification device 830 sends a request to obtain <Action 1> to the service layer 820. After receiving this request, the service layer 820 sends the information of Action 1 to the air monitoring and purification device 830, that is, returns a response to obtain <Action 1> to the air monitoring and purification device 830.
[0179] After the air monitoring and purification device 830 receives the response to obtain <Action 1>, it modifies Action 2 according to Action 1 to obtain a new Action 2 to solve the conflict problem between Action 1 and Action 2. Then, it sends a new request to create a new <Action 2> to the service layer 820. The target of this new Action 2 is the door and window controller. Thus, the new Action 2 has no conflict with Action 1, thereby solving the gap between different products.
[0180] The air conditioner device 840 sends a request to create <Action 3> to the service layer 820. Since there is a conflict between Action 3 and Action 1, Action 2, the service layer 820 sends a failure response for creating <Action 3> to the air conditioner device 840. Among them, the target of this Action 23 is the door and window controller.
[0181] The service layer 820 sends a request to recommend obtaining <Action 1> <Action 2> to the air conditioner device 840, that is, recommends that the air conditioner device 840 perform the actions of obtaining Action 1 and Action 2, so as to view Action 1 and Action 2. The air conditioner device 840 determines to accept the recommendation of the service layer 820 according to the request to recommend obtaining <Action 1> <Action 2>, and sends a response to recommend obtaining <Action 1> <Action 2> to the service layer 820. According to this response, the service layer 820 determines that the air conditioner device 840 has agreed to its own recommendation.
[0182] The air conditioner device 840 sends a request to obtain <Action 1> <Action 2> to the service layer 820. After receiving this request, the service layer 820 sends the information of Action 1 and Action 2 to the air conditioner device 840, that is, returns a response to obtain <Action 1> <Action 2> to the air monitoring and purification device 830.
[0183] After the air conditioner device 840 receives the response to obtain <Action 1> <Action 2>, it modifies Action 3 according to Action 1 and Action 2 to obtain a new Action 3 to solve the conflict problem between Action 3 and Action 1 and Action 2. Then, it sends a request to create a new <Action 3> to the service layer 820, and the target of this new Action 3 is the door and window controller. Thus, the new Action 3 has no conflict with Action 1 and Action 2, thereby solving the gap between different products.
[0184] Figure 16 In this case, the service layer 820 can be regarded as the first requester, and the air monitoring and purification device 830 and the air conditioner device 840 can be regarded as the first receivers. When the actions requested to be created by the air monitoring and purification device 830 and the air conditioner device 840 are the same as the actions for the targeted control objects that have been created, the service layer sends recommendation information to the air monitoring and purification device 830 and the air conditioner device 840 so that both can modify the actions according to the recommendation information.
[0185] Figure 17 In this case, the response returned by the service layer 820 to the air purification device 830 is that the creation of Action 2 is successful. Then, the service layer 820 sends a request to recommend obtaining <Action 2> to the gas monitoring device 810, that is, recommends that the gas monitoring device 810 obtain Action 2 so as to view Action 2. The gas monitoring device 810 determines to accept the recommendation of the service layer 820 according to the request to recommend obtaining <Action 2>, and sends a response to recommend obtaining <Action 2> to the service layer 820. According to this response, the service layer 820 determines that the gas monitoring device 810 agrees with its own recommendation.
[0186] The gas monitoring device 810 sends a request to obtain <Action 2> to the service layer 820. After receiving this request, the service layer 820 sends the information of Action 2 to the gas monitoring device 810, that is, returns a response to obtain <Action 1> to the gas monitoring device 810.
[0187] After the gas monitoring device 810 receives the response to obtain <Action 2>, it modifies Action 1 according to Action 2 to obtain a new Action 1 to solve the conflict problem between Action 1 and Action 2. Then, it sends a request to create a new <Action 1> to the service layer 820, and the target of this new Action 1 is the door and window controller. Thus, the new Action 1 has no conflict with Action 2, thereby solving the gap between different products.
[0188] Figure 17In [the above situation], the gas monitoring device 810 can be used as the first recipient, and the service layer 820 as the first requester. When, after the first recipient requests to create an action, a conflict occurs between the actions requested by other devices and the actions already created by the first recipient, the first requester sends to the first recipient a view of the actions requested by other devices for reverse recommendation to the first recipient, so that the first recipient can modify its own actions and re-request the creation of new actions.
[0189] Figure 18 In [the above situation], after the service layer 820 returns a response indicating that the creation of Action 2 has failed to the air purification device 830, it recommends to the air purification device 830 a request to create a new <Action 2>, that is, the service layer 820 sends a recommendation with the creation result to the air purification device 830.
[0190] After receiving the recommendation request, the air purification device 830 reconstructs according to the recommendation request a request to create a new Action 2 for the door and window controller and sends it to the service layer 820. After the service layer 820 obtains the request to create a new <Action 2>, it creates a new Action 2 and returns to the air purification device 830 a response indicating the creation of the new <Action 2>. Thus, the air purification device 830 requests to create a new Action 2 according to the recommendation with the creation result received from the service layer 820, so that the new Action 2 does not conflict with Action 1.
[0191] Figure 18 In [the above situation], the air purification device 830 can be used as the first recipient, and the service layer 820 as the first requester. For the same control object, the door and window controller, when a conflict occurs between the action requested by the first recipient and the action created by the service layer 820 according to the requests of other devices, the first requester can recommend a new action to the first recipient.
[0192] To implement the above embodiments, an embodiment of the present application also proposes a resource guidance device. Figure 19 It is a schematic structural diagram of a resource guidance device provided by an embodiment of the present application.
[0193] The resource guidance device of the embodiment of the present application is applied to the first recipient.
[0194] As Figure 19 shown, the resource guidance device includes: a receiving module 910 and a determining module 920.
[0195] The receiving module 910 is configured to obtain a target request sent by the first requester, where the target request carries resource information and a target address, the target address includes a virtual resource address, and the resource information includes recommendation information.
[0196] A determination module 920, configured to obtain recommendation information according to a virtual resource address and determine an action executor according to the virtual resource address; wherein, the recommendation information is used to recommend a next action to be executed by the action executor.
[0197] In a possible implementation manner of the embodiment of the present application, the above target request is an update request, wherein the recommendation information is information of a first target group, and the information of the first target group includes an identifier of the first target group and a member list of the first target group. The member list of the first target group includes an identifier of a first recipient. Then, the recommendation information is used to recommend an action of joining the first target group to the action executor.
[0198] The above determination module 920 is configured to parse the target address and determine that the action executor is the first recipient according to the virtual resource address.
[0199] The device may further include:
[0200] A first sending module, configured to send a first response to the first requester according to the recommendation information, so that the first requester determines whether the first recipient executes the action of joining the first target group according to whether the member list of the first target group in the first response includes the identifier of the first recipient.
[0201] In a possible implementation manner of the embodiment of the present application, if the member list of the first target group in the first response includes the identifier of the first recipient.
[0202] The above first sending module is further configured to send an update request to the first requester, where the update request includes the identifier of the first recipient.
[0203] The above receiving module 910 is further configured to receive a corresponding response sent by the first requester.
[0204] In a possible implementation manner of the embodiment of the present application, if the target request is a creation request, and the recommendation information is the identifier of each member in the second target group, then the recommendation information is used to recommend an action of creating the second target group to the action executor.
[0205] The determination module 920 is configured to parse the target address and determine that the action executor is the first action executor according to the virtual resource address.
[0206] The device further includes:
[0207] A second sending module, configured to forward the target request to the first action executor.
[0208] The receiving module 910 is configured to obtain a second response from the first action executor.
[0209] The second sending module is further configured to send the second response to the first requester, so that the first requester determines whether the second target group is successfully created according to the information on whether the second target group is successfully created in the second response.
[0210] In a possible implementation manner of the embodiment of the present application, the device may further include:
[0211] A third sending module, configured to send a creation action resource request for a control object to the first requester, where the creation action resource request includes information on a first action resource;
[0212] The receiving module 910 is further configured to obtain a third response to the creation action resource request from the first requester.
[0213] In a possible implementation manner of the embodiment of the present application, the third response is a failure response, which is generated by the first requester when there is a conflict between the first action resource and the second action resource that has been created. The target request is an information acquisition request, where the recommended information in the information acquisition request is the information of the second action resource. Then, the recommended information is used to recommend an action of acquiring the information of the second action resource to the action executor, where
[0214] The determination module 920 is configured to resolve the target address and determine that the action executor is the first receiver according to the virtual resource address;
[0215] The third sending module is further configured to send a fourth response to the first requester according to the information of the second action resource.
[0216] In a possible implementation manner of the embodiment of the present application, the third sending module is further configured to send a first acquisition request to the first requester;
[0217] The receiving module 910 is further configured to receive a response corresponding to the first acquisition request sent by the first requester, where the response corresponding to the first acquisition request includes the information of the second action resource;
[0218] The device further includes:
[0219] A first update module, configured to update the first action resource according to the information of the second action resource;
[0220] The third sending module is further configured to send an updated creation action resource request to the first requester, where the updated creation action resource request includes the information of the updated first action resource.
[0221] In a possible implementation manner of an embodiment of the present application, the third response is a failure response, which is generated by the first requester when there is a conflict between the first action resource and the created second action resource. The target request is a creation request, and the recommended information in the creation request is the information of the new first action resource. The recommended information is used to recommend to the action executor to perform the action of creating the new first action resource. Among them,
[0222] A determination module 920, configured to resolve the target address and determine, according to the virtual resource address, that the action executor is the first recipient;
[0223] The above-mentioned third sending module is further configured to send a fifth response to the first requester according to the information of the new first action resource.
[0224] In a possible implementation manner of an embodiment of the present application, the device may further include: a second update module, configured to update the first action resource according to the information of the new first action resource carried in the creation request.
[0225] The above-mentioned third sending module is further configured to send an updated creation action resource request to the first requester, where the updated creation action resource request includes the information of the updated first action resource.
[0226] In a possible implementation manner of an embodiment of the present application, the third response is a success response, and the target request is an information acquisition request. The recommended information in the information acquisition request is the information of the third action resource, and the third action resource is created by the first requester for the control object after creating the first action resource. The recommended information is used to recommend to the action executor to perform the action of acquiring the information of the third action resource. Among them,
[0227] A determination module 920, configured to resolve the target address and determine, according to the virtual resource address, that the action executor is the first recipient;
[0228] The above-mentioned third sending module is further configured to send a sixth response to the first requester according to the information of the third action resource.
[0229] In a possible implementation manner of an embodiment of the present application, the above-mentioned third sending module is further configured to send a second acquisition request to the first requester;
[0230] A receiving module 910 is further configured to receive the response corresponding to the second acquisition request sent by the first requester, and the response corresponding to the second acquisition request includes the information of the third action resource;
[0231] The device may further include:
[0232] A third update module, configured to update a first action resource according to information of a third action resource, and send a request for creating an updated action resource to a first requester, where the request for creating an updated action resource includes information of the updated first action resource.
[0233] It should be noted that the foregoing explanation of the embodiments of the resource guiding method also applies to the resource guiding device of this embodiment, so it will not be elaborated here.
[0234] The resource guiding device of the embodiments of the present application determines an action executor according to a set virtual resource address, recommends a next action to be executed for the action executor according to recommendation information, and thus guides resources through the virtual resource address, improving the interaction efficiency and intelligence of the interaction and reducing the latency.
[0235] To implement the above embodiments, the embodiments of the present application also propose a device, including a processor and a memory;
[0236] The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the resource guiding method as described in the above embodiments.
[0237] To implement the above embodiments, the embodiments of the present application also propose a non-transitory computer-readable storage medium, and when the program is executed by a processor, it implements the resource guiding method as described in the above embodiments.
[0238] In the description of this specification, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include at least one such feature.
[0239] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present application. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present application.
Claims
1. A resource guiding method, characterized in that, it includes: The first recipient obtains a target request sent by the first requester, where the target request carries resource information and a target address, the target address includes a virtual resource address, and the resource information includes recommendation information; wherein, the virtual resource address is used to indicate that the target request is a special request, and it is a request in which the recommendation information is included in the resource information. If the first recipient determines that the target address includes the virtual resource address by parsing the target address, it means that the target request is a special request carrying the recommendation information. If the target address in the target request does not include virtual resource information, it means that the received target request is a normal request; The first recipient obtains the recommendation information according to the virtual resource address and determines an action executor according to the virtual resource address; wherein, the recommendation information is used to recommend the next action to be executed by the action executor; if the target request is an update request, the recommendation information is information of a first target group, and the information of the first target group includes an identifier of the first target group and a member list of the first target group. Wherein, the member list of the first target group includes the identifier of the first recipient, then the recommendation information is used to recommend to the action executor to execute the action of joining the first target group. Wherein, determining the action executor according to the virtual resource address includes: The first recipient parses the target address and determines that the action executor is the first recipient according to the virtual resource address; After determining the action executor according to the virtual resource address, it further includes: The first recipient sends a first response to the first requester according to the recommendation information, so that the first requester determines whether the first recipient executes the action of joining the first target group according to whether the member list of the first target group in the first response includes the identifier of the first recipient.
2. The method according to claim 1, characterized in that, if the member list of the first target group in the first response includes the identifier of the first recipient, after the first recipient sends the first response to the first requester according to the recommendation information, it further includes: The first recipient sends an update request to the first requester, where the update request includes the identifier of the first recipient; The first recipient receives the corresponding response sent by the first requester.
3. The method according to claim 1, characterized in that, if the target request is a creation request, and the recommendation information in the creation request is the identifiers of the members in the second target group, then the recommendation information is used to recommend to the action executor to execute the action of creating the second target group. Wherein, determining the action executor according to the virtual resource address includes: The first recipient parses the target address and determines that the action executor is the first action executor according to the virtual resource address; After determining the action executor according to the virtual resource address, it further includes: The first recipient forwards the target request to the first action executor; The first recipient obtains a second response from the first action executor; The first recipient sends the second response to the first requester, so that the first requester determines whether the second target group is successfully created according to the information on whether the second target group is successfully created in the second response.
4. The method according to claim 1, wherein, Before the first recipient obtains the target request sent by the first requester, it further includes: The first recipient sends a creation action resource request for the control object to the first requester, wherein the creation action resource request includes information on the first action resource; The first recipient obtains a third response to the creation action resource request from the first requester.
5. The method according to claim 4, wherein, The third response is a failure response, which is generated by the first requester when there is a conflict between the first action resource and the already created second action resource. The target request is an information acquisition request, wherein the recommended information in the information acquisition request is the information of the second action resource. Then, the recommended information is used to recommend to the action executor an action to execute to acquire the information of the second action resource. The determining the action executor according to the virtual resource address includes: The first recipient resolves the target address and determines that the action executor is the first recipient according to the virtual resource address; After determining that the action executor is the first recipient, it further includes: The first recipient sends a fourth response to the first requester according to the information of the second action resource.
6. The method according to claim 5, wherein, After the first recipient sends the fourth response to the first requester according to the information of the second action resource, it further includes: The first recipient sends a first acquisition request to the first requester; The first recipient receives the response corresponding to the first acquisition request sent by the first requester, and the response corresponding to the first acquisition request includes the information of the second action resource; The first recipient updates the first action resource according to the information of the second action resource and sends an updated creation action resource request to the first requester, wherein the updated creation action resource request includes the information of the updated first action resource.
7. The method according to claim 4, wherein, The third response is a failure response, which is generated by the first requester when there is a conflict between the first action resource and the already created second action resource. The target request is a creation request, wherein the recommended information in the creation request is the information of the new first action resource. Then, the recommended information is used to recommend to the action executor an action to execute to create the new first action resource. Wherein, the determining the action executor according to the virtual resource address includes: The first recipient resolves the target address and determines that the action executor is the first recipient according to the virtual resource address; After determining that the action executor is the first recipient, it further includes: The first recipient sends a fifth response to the first requester according to the information of the new first action resource.
8. The method according to claim 7, wherein, After the first recipient sends a fifth response to the first requester according to the information of the new first action resource, it further includes: The first recipient updates the first action resource according to the information of the new first action resource carried in the creation request; The first recipient sends an updated creation action resource request to the first requester, where the updated creation action resource request includes the information of the updated first action resource.
9. The method according to claim 4, wherein, The third response is a successful response, and the target request is an information acquisition request, where the recommended information in the information acquisition request is the information of the third action resource, and the third action resource is created by the first requester for the control object after creating the first action resource. Then, the recommended information is used to recommend an action for the action executor to execute to obtain the information of the third action resource. Determining the action executor according to the virtual resource address includes: The first recipient resolves the target address and determines that the action executor is the first recipient according to the virtual resource address; After determining that the action executor is the first recipient, it further includes: The first recipient sends a sixth response to the first requester according to the information of the third action resource.
10. The method according to claim 9, wherein, After the first recipient sends a sixth response to the first requester according to the information of the third action resource, it further includes: The first recipient sends a second acquisition request to the first requester; The first recipient receives the response corresponding to the second acquisition request sent by the first requester, and the response corresponding to the second acquisition request includes the information of the third action resource; The first recipient updates the first action resource according to the information of the third action resource and sends an updated creation action resource request to the first requester, where the updated creation action resource request includes the information of the updated first action resource.
11. A device, wherein, It includes a processor and a memory; Among them, the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory to be used to implement the resource guiding method according to any one of claims 1-10.
12. A non-transitory computer-readable storage medium, on which a computer program is stored, wherein, When the program is executed by a processor, it implements the resource guiding method according to any one of claims 1-10.
Citation Information
Patent Citations
Data transmission method and device
CN107371151A
A method for creation, retrieval, update and deletion of group resource with child group and search attributes and apparatus thereof
KR1020150062904A