Cross-platform equipment linkage method and device, electronic equipment and storage medium

By setting up a central control terminal in the IoT system and integrating the rule engines of each distributed terminal, the problem of inability to link devices from different manufacturers is solved, linkage between cross-platform devices is realized, and the collaborative working capabilities and user experience of IoT devices are improved. .

CN118784718APending Publication Date: 2024-10-15BEIJING BOE TECH DEV CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310343718.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-03
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

IoT devices from different manufacturers cannot achieve cross-platform linkage, making it impossible to achieve collaborative work between devices from different manufacturers in a home environment.

Method used

By setting up a central control terminal, the central control terminal is connected to multiple distributed terminals (manufacturer platforms), receives and integrates the rule engines sent by each distributed terminal, and forms a rule engine for linkage between different distributed terminal devices, thereby achieving Linkage between devices from different manufacturers.

Benefits of technology

It realizes the linkage between devices from different manufacturers, improves the collaborative working ability of IoT devices, simplifies user operations, and reduces system modification and implementation costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784718A_ABST
    Figure CN118784718A_ABST
Patent Text Reader

Abstract

The invention provides a cross-platform equipment linkage method and device, electronic equipment and a storage medium, and the method comprises the steps: receiving a first rule engine sent by a first distributed end, the first rule engine being used for indicating to execute a first action when a first trigger condition is satisfied; receiving a second rule engine sent by a second distributed end, wherein the second rule engine is used for indicating to execute a second action under the condition that a second triggering condition is met; and determining a third rule engine according to the first rule engine and the second rule engine, wherein the third rule engine is used for indicating to execute the second action under the condition that the first triggering condition is met. According to the method and the device, the central control end is arranged, different distributed ends send the rule engine used for linkage between the devices to the central control end, and the central control end fuses the rule engines sent by the distributed ends to form the rule engine used for linkage between the devices of the different distributed ends, so that linkage between the devices of the different distributed ends is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of Internet of Things technology, and in particular to a cross-platform device linkage method, device, electronic device and storage medium. Background Art

[0002] like Figure 1 As shown, in a home environment, users may purchase devices from multiple manufacturers. Currently, multiple devices under the same manufacturer's platform can be linked, for example Figure 1 In the example, users can control the smart speaker of manufacturer A through voice, so that the smart speaker can be linked with the air conditioner of manufacturer A, thereby controlling the opening or closing of the air conditioner, etc. However, devices under different manufacturers' platforms cannot discover each other, so it is impossible to achieve linkage between devices of different manufacturers. Summary of the invention

[0003] The embodiments of the present invention provide a cross-platform device linkage method, device, electronic device and storage medium, which are used to solve the problem that devices from different manufacturers cannot be linked.

[0004] In order to solve the above-mentioned technical problems, the present invention is achieved as follows:

[0005] In a first aspect, an embodiment of the present invention provides a cross-platform device linkage method, including:

[0006] Receiving a first rule engine sent by a first distributed terminal, wherein the first rule engine is used to instruct to execute a first action when a first trigger condition is met;

[0007] Receive a second rule engine sent by a second distributed terminal, where the second rule engine is used to instruct to execute a second action when a second trigger condition is met;

[0008] A third rule engine is determined according to the first rule engine and the second rule engine, and the third rule engine is used to instruct to execute the second action when the first trigger condition is met.

[0009] Optionally, the determining a third rule engine according to the first rule engine and the second rule engine further includes:

[0010] Receiving first data corresponding to the first trigger condition sent by the first distributed terminal;

[0011] Determining whether the first data satisfies the first trigger condition;

[0012] If the condition is met, the second distributed end is triggered to execute the second action.

[0013] Optionally, the first rule engine includes a first dependency condition, and the second rule engine includes a second dependency condition;

[0014] Determining a third rule engine according to the first rule engine and the second rule engine comprises:

[0015] Determining whether the first dependency condition and the second dependency condition match;

[0016] If there is a match, the first rule engine and the second rule engine are merged to form a third rule engine.

[0017] Optionally, determining a third rule engine according to the first rule engine and the second rule engine includes:

[0018] If the identifier corresponding to the first trigger condition is determined and the identifier corresponding to the second trigger condition is uncertain, the third rule engine adopts the first trigger condition;

[0019] If the identifier corresponding to the first action is uncertain and the identifier corresponding to the second action is certain, the third rule engine adopts the second action.

[0020] Optionally, the first dependency condition includes at least one of the following: user identification, location information and time information;

[0021] The second dependent condition includes at least one of the following: user identification, location information and time information.

[0022] Optionally, the receiving first data corresponding to the first trigger condition sent by the first distributed terminal also includes:

[0023] Send a subscription request for subscribing to the first data to the first distributed end.

[0024] Optionally, the triggering the second distributed end to perform the second action includes:

[0025] Sending a control request for executing the second action to the second distributed terminal;

[0026] or

[0027] The first data is sent to the second distributed end to trigger the second distributed end to perform the second action according to the second rule engine.

[0028] Optionally, the method further includes:

[0029] According to the input information of the user in the user interface, a fourth rule engine is formed, wherein the fourth rule engine is used to indicate that the first action is triggered to be executed when the second trigger condition is met, wherein the identifier corresponding to the second trigger condition is uncertain and the identifier corresponding to the first action is uncertain;

[0030] The fourth rule engine is sent to the first distributed end and the second distributed end, so that the first distributed end determines the first rule engine according to the fourth rule engine, and the second distributed end determines the second rule engine according to the fourth rule engine.

[0031] Optionally, the triggering the second distributed end to perform the second action further includes:

[0032] Determine whether there is a fifth rule engine related to the third rule engine, the fifth rule engine is used to indicate triggering a third action when a third trigger condition is met;

[0033] If the fifth rule engine exists and the third trigger condition is met, determining the priority of the third rule engine and the fifth rule engine;

[0034] When the priority of the third rule engine is higher than the priority of the fifth rule engine, the second distributed end is triggered to perform the second action.

[0035] In a second aspect, an embodiment of the present invention provides a cross-platform device linkage method, including:

[0036] A first rule engine is sent to the central control end, where the first rule engine is used to instruct to execute a first action when a first trigger condition is met.

[0037] Optionally, the identifier corresponding to the first trigger condition is determined and the identifier corresponding to the first action is uncertain.

[0038] Optionally, the method further includes: sending first data corresponding to the first trigger condition to the central control end.

[0039] Optionally, the first rule engine also includes: a first dependency condition, and the first dependency condition is used by the central control end to determine whether the first rule engine matches other rule engines.

[0040] Optionally, the first dependency condition includes at least one of the following: user identification, location information and time information.

[0041] Optionally, before sending the first rule engine to the central control end, the method further includes:

[0042] receiving a fourth rule engine sent by the central control end, the fourth rule engine being used to instruct triggering execution of the first action when the second trigger condition is met, wherein an identifier of a resource corresponding to the second trigger condition is uncertain and an identifier of a resource corresponding to the first action is uncertain;

[0043] The first rule engine is determined according to the fourth rule engine.

[0044] Optionally, before sending the first rule engine to the central control end, the method further includes:

[0045] The first rule engine is formed according to the user input information in the user interface.

[0046] In a third aspect, an embodiment of the present invention provides a cross-platform device linkage method, including:

[0047] A second rule engine is sent to the central control end, where the second rule engine is used to instruct to execute a second action when a second trigger condition is met.

[0048] Optionally, the identifier of the resource corresponding to the second trigger condition is uncertain and the identifier of the resource corresponding to the second action is certain.

[0049] Optionally, the second rule engine also includes: a second dependency condition, and the second dependency condition is used by the central control end to determine whether the second rule engine matches other rule engines.

[0050] Optionally, the second dependent condition includes at least one of the following: user identification, location information and time information.

[0051] Optionally, before sending the second rule engine to the central control end, the method further includes:

[0052] receiving a fourth rule engine sent by the central control end, the fourth rule engine being used to instruct triggering execution of the first action when the second trigger condition is met, wherein an identifier of a resource corresponding to the second trigger condition is uncertain and an identifier of a resource corresponding to the first action is uncertain;

[0053] The second rule engine is determined according to the fourth rule engine.

[0054] Optionally, the method further includes:

[0055] receiving a control request for executing the second action sent by the central control terminal;

[0056] According to the control request, controlling execution of the second action;

[0057] or

[0058] Receiving first data sent by the central control terminal;

[0059] According to the second rule engine, when the first data meets the second trigger condition, the second action is controlled to be executed.

[0060] Optionally, before sending the first rule engine to the central control end, the method further includes:

[0061] The second rule engine is formed according to the user input information in the user interface.

[0062] In a fourth aspect, an embodiment of the present invention provides a cross-platform device linkage apparatus, including:

[0063] A first receiving module, configured to receive a first rule engine sent by a first distributed terminal, wherein the first rule engine is configured to instruct to execute a first action when a first trigger condition is met;

[0064] A second receiving module, configured to receive a second rule engine sent by a second distributed terminal, wherein the second rule engine is configured to instruct to execute a second action when a second trigger condition is met;

[0065] A fusion module is used to determine a third rule engine according to the first rule engine and the second rule engine, and the third rule engine is used to instruct to execute the second action when the first trigger condition is met.

[0066] In a fifth aspect, an embodiment of the present invention provides a cross-platform device linkage apparatus, including:

[0067] The first sending module is used to send a first rule engine to the central control end, where the first rule engine is used to instruct to execute a first action when a first trigger condition is met.

[0068] In a sixth aspect, an embodiment of the present invention provides a cross-platform device linkage apparatus, including:

[0069] The first sending module is used to send a second rule engine to the central control end, where the second rule engine is used to instruct to execute a second action when a second trigger condition is met.

[0070] In the seventh aspect, an embodiment of the present invention provides an electronic device, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the cross-platform device linkage method as described in the first aspect, the second aspect, or the third aspect are implemented.

[0071] In an eighth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the cross-platform device linkage method as described in the first aspect, the second aspect or the third aspect are implemented.

[0072] In an embodiment of the present invention, a central control terminal is set up, and the central control terminal is connected to multiple distributed terminals (manufacturer platforms) respectively. Different distributed terminals send rule engines for inter-device linkage to the central control terminal, and the central control terminal integrates the rule engines sent by different distributed terminals to form a rule engine for inter-device linkage of different distributed terminals, so as to realize linkage between devices of different distributed terminals. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0074] Figure 1 A schematic diagram of the connection method of the IoT platform for IoT devices in a home environment;

[0075] Figure 2 A schematic diagram of implementing a rule engine through resources and attributes;

[0076] Figure 3 A schematic diagram of an example of a rule engine implemented by an application through resources and attributes;

[0077] Figure 4 A schematic diagram of a cross-platform device linkage method provided by an embodiment of the present invention;

[0078] Figure 5 is a schematic diagram of a rule engine according to an embodiment of the present invention;

[0079] Figure 6 A schematic diagram of another cross-platform device linkage method provided by an embodiment of the present invention;

[0080] Figure 7 A schematic diagram of a flow chart of another cross-platform device linkage method provided by an embodiment of the present invention;

[0081] Figure 8 Schematic diagram of a cross-platform device linkage method according to Embodiment 1 of the present invention;

[0082] Fig. 9 Schematic diagram of a cross-platform device linkage method according to Embodiment 2 of the present invention;

[0083] Fig.10 Schematic diagram of a cross-platform device linkage method according to Embodiment 3 of the present invention;

[0084] Fig.11 Schematic diagram of a cross-platform device linkage method according to Embodiment 4 of the present invention;

[0085] Fig.12 Schematic diagram of a cross-platform device linkage method according to Embodiment 5 of the present invention;

[0086] Fig.13 Schematic diagram of a cross-platform device linkage method according to Embodiment 6 of the present invention;

[0087] Fig.14 A schematic diagram of the structure of a cross-platform device linkage apparatus provided by an embodiment of the present invention;

[0088] Fig.15 A schematic diagram of the structure of another cross-platform device linkage apparatus provided by an embodiment of the present invention;

[0089] Fig.16 A schematic diagram of the structure of another cross-platform device linkage apparatus provided by an embodiment of the present invention;

[0090] Fig.17 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0091] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0092] First, the technical content involved in the present invention is briefly described below.

[0093] 1. IoT Platform Standards

[0094] The IoT platform is the core of the IoT system, and plays the role of hosting IoT applications and IoT devices. Currently, the IoT platform standards with relatively large influence in the world include the oneM2M standard, etc. The system of this standard includes several types of nodes: Infrastructure Node (IN), specifically, IN can be a server, Middle Node (MN), specifically, MN can be a gateway, edge server, etc., and Application Service Node (ASN and Application Dedicated Node, ADN), specifically, ASN can be a terminal device, and AND can be a sensor device. Infrastructure node (IN), Middle Node (MN), and Application Node (ASN and ADN) are composed of Application Entity (AE) and / or Common Service Entity (CSE), specifically AE can be application software / module, and CSE can be service software / module. The relationship between nodes and entities is as follows: ASN contains one CSE and at least one AE, ADN contains at least one AE, MN contains CSE and 0 or more AEs, and IN contains one CSE and 0 or more AEs.

[0095] 2. Rules Engine

[0096] The rule engine can be implemented through resources and attributes. Resources can include sub-resources, resources / sub-resources can include attributes, and attributes cannot include resources. For example, the rule engine can use <action>Resource identifier. The trigger condition is whether the value contained in the subject resource pointed to by subjectResourceID meets the rules defined by the evalCriteria attribute. If the rules are met, the action primitive defined by the actionPrimitive attribute is executed for the objectResource resource pointed to by objectResourceID. For the specific structure, please refer to Figure 2 .

[0097] Take the example of automatically turning on the air conditioner according to the temperature in the smart home scenario, such as "when the temperature at home is > 30 degrees, turn on the air conditioner, mode = cold air, temperature = 27 degrees, wind speed = automatic", <action>The structure of the resource is as follows Figure 3 As shown, the specific implementation process is as follows:

[0098] 1. The temperature sensor reports the temperature value to the IoT platform and records it in the temperature sensor resource pointed to by subjectResourceID;

[0099] 2. The action resource determines whether the temperature value in the temperature sensor resource pointed to by subjectResourceID satisfies (temperature>30 degrees);

[0100] 3. When the temperature is greater than 30 degrees, send the action primitive defined in actionPrimitive (turn on the air conditioner) to the air conditioner pointed to by objectResourceID, and use input as the input parameter. The input is the auxiliary information of "mode = cold air, temperature = 27 degrees, wind speed = automatic";

[0101] 4. Receive the execution result of the action primitive executed by the air conditioning equipment and save it to actionResult.

[0102] Scenario linkage is a visual programming method for developing automated business logic in the rule engine. The linkage rules between devices are defined in a visual way and deployed to the cloud or edge.

[0103] The scene linkage rules consist of three parts: trigger, execution condition and execution action. This rule model is called TCA model.

[0104] When the event or attribute specified by the trigger (excluding date, enum, struct and array types) occurs, the system determines whether the execution condition has been met to decide whether to execute the execution action defined in the scene linkage rule. If the condition is met, the action is executed; otherwise, it is not executed.

[0105] To solve the problem that devices from different manufacturers cannot be linked, please refer to Figure 4 The embodiment of the present invention provides a cross-platform device linkage method, which is executed by a central control terminal, and the method includes:

[0106] Step 11: receiving a first rule engine sent by a first distributed terminal, wherein the first rule engine is used to instruct to execute a first action when a first trigger condition is met;

[0107] Step 12: receiving a second rule engine sent by the second distributed terminal, where the second rule engine is used to instruct to execute a second action when a second trigger condition is met;

[0108] Step 13: Determine a third rule engine according to the first rule engine and the second rule engine, wherein the third rule engine is used to instruct to execute the second action when the first trigger condition is met.

[0109] The rule engine is information used by the IoT platform (the first distributed terminal and the second distributed terminal) to control IoT devices, and the rule engine includes: a trigger condition (such as the first trigger condition or the second trigger condition) and an action (such as the first action or the second action) executed after the trigger condition is met. In a complete rule engine, the trigger condition corresponds to a trigger object (such as the subjectResourceID above), and the action corresponds to an execution object (such as the objectResourceID above), wherein when the first data corresponding to the trigger object meets the trigger condition, the trigger execution object executes the action.

[0110] In an embodiment of the present invention, a central control terminal is set up, and the central control terminal is connected to multiple distributed terminals (manufacturer platforms) respectively. Different distributed terminals send rule engines for inter-device linkage to the central control terminal, and the central control terminal integrates the rule engines sent by different distributed terminals to form a rule engine for inter-device linkage of different distributed terminals, so as to realize linkage between devices of different distributed terminals.

[0111] In an embodiment of the present invention, optionally, the identifier corresponding to the first trigger condition is determined and the identifier corresponding to the first action is uncertain, that is, the first rule engine is an incomplete rule engine. The identifier of the resource corresponding to the second trigger condition is uncertain and the identifier of the resource corresponding to the second action is determined, that is, the second rule engine is an incomplete rule engine.

[0112] The "fusion" mentioned above means that the central control end combines two incomplete rule engines to form a new complete rule engine for realizing linkage between devices.

[0113] In the embodiment of the present invention, there is no need to change the structure of the existing rule engine. It is only necessary to combine two incomplete rule engines into a new complete rule engine, which requires little change to the system and has a low implementation cost.

[0114] For example, see Figure 5 , the first rule engine of the first distributed terminal is: when the temperature is greater than 30 degrees (the first trigger condition), turn on the air conditioner, mode = cooling, temperature = 27 degrees (the first action); suppose that the device under the first distributed terminal includes a temperature sensor, but does not include an air conditioner, that is, the identifier (subjectResourceID) corresponding to the first trigger condition in the first rule engine is determined to be the identifier of the temperature sensor of manufacturer A, and the identifier (objectResourceID) corresponding to the first action is uncertain and is empty. At this time, since the device under the first distributed terminal does not have an air conditioner, the first action cannot be executed, and the first rule engine needs to be sent to the central control terminal.

[0115] It should be noted that in some cases, even if the device under the first distributed end has an air conditioner, the air conditioner may not be connected to the first distributed end (for example, the air conditioner is not connected to power). At this time, the first distributed end cannot search for the air conditioner. At this time, the identifier (objectResourceID) corresponding to the first action can also be set to uncertain, that is, empty.

[0116] In addition, when the rule engine is input by the user on the distributed end, the user can also decide whether to set the identifier corresponding to the trigger condition or the identifier corresponding to the action to be determined or uncertain, even if the identifier corresponding to the trigger condition or the identifier corresponding to the action exists. For example, the device under the first distributed end has an air conditioner, but the user wants to start the air conditioner under the second distributed end. At this time, the user can also set the identifier (objectResourceID) corresponding to the first action to be uncertain and empty.

[0117] In summary, the identifiers corresponding to the above trigger conditions or actions are uncertain, including multiple situations, such as the device does not exist, the device exists but is not found, or the device exists but is manually set to be uncertain.

[0118] Please refer to Figure 5 , the second rule engine of the second distributed terminal is: when the temperature is greater than 30 degrees (the second trigger condition), turn on the air conditioner, mode = cooling, temperature = 27 degrees (the second action); suppose that the equipment under the second distributed terminal includes an air conditioner, but does not include a temperature sensor, that is, the identifier corresponding to the second trigger condition in the second rule engine is uncertain and empty, and the identifier (objectResourceID) corresponding to the second action is determined, which is the identifier of the air conditioner of manufacturer B. At this time, since the equipment under the second distributed terminal does not have a temperature sensor, it is impossible to determine whether the second trigger condition is met, and the second rule engine needs to be sent to the central control terminal.

[0119] As above, the identifier corresponding to the second trigger condition in the second rule engine is uncertain. The uncertainty here does not only include that the device does not exist, but also that the device exists but is not searched, or that the device exists but is manually set to uncertain.

[0120] In the embodiment of the present invention, determining the third rule engine according to the first rule engine and the second rule engine includes:

[0121] If the identifier corresponding to the first trigger condition is determined and the identifier corresponding to the second trigger condition is uncertain, the third rule engine adopts the first trigger condition;

[0122] If the identifier corresponding to the first action is uncertain and the identifier corresponding to the second action is certain, the third rule engine adopts the second action.

[0123] Still Figure 5 Taking the example in as an example, the third rule engine is: when the temperature is greater than 30 degrees (the first trigger condition), the air conditioner is turned on, the mode = cooling, the temperature = 27 degrees (the second action). The identifier (subjectResourceID) corresponding to the first trigger condition in the third rule engine is determined to be the identifier of the temperature sensor of manufacturer A, and the identifier (objectResourceID) corresponding to the second action is determined to be the identifier of the air conditioner of manufacturer B.

[0124] That is to say, when the rule engine received by the central control end from the first distributed end and the second distributed end is an incomplete rule engine (subjectResourceID or objectResourceID is missing), the two incomplete rule engines are merged into a complete rule engine, thereby realizing linkage between devices at different distributed ends.

[0125] In the above embodiments, whether the rule engine is complete is determined by whether the identifier corresponding to the trigger condition (subjectResourceID) and the identifier corresponding to the action (objectResourceID) are certain. If the identifier corresponding to the trigger condition (subjectResourceID) and the identifier corresponding to the action (objectResourceID) are both certain, it is a complete rule engine. If one of the identifier corresponding to the trigger condition (subjectResourceID) or the identifier corresponding to the action (objectResourceID) is uncertain, it is an incomplete rule engine.

[0126] In some other embodiments of the present invention, the rule engine may also be modified, and the trigger condition may correspond not to an identifier (subjectResourceID) but to other trigger objects, such as a location. For example, the first rule engine of the first distributed end is: when the temperature at location A is greater than 30 degrees (first trigger condition), turn on the air conditioner (first action); assuming that the device under the first distributed end includes a temperature sensor, and the location of the temperature sensor is A, that is, the trigger object (location A) corresponding to the first trigger condition in the first rule engine is determined.

[0127] Of course, the above-mentioned trigger objects such as identification and position are only examples, and the trigger objects may not be limited thereto.

[0128] In the embodiment of the present invention, optionally, the first rule engine includes a first dependency condition, and the second rule engine includes a second dependency condition; and determining the third rule engine according to the first rule engine and the second rule engine includes:

[0129] Determining whether the first dependency condition and the second dependency condition match;

[0130] If there is a match, the first rule engine and the second rule engine are merged to form a third rule engine.

[0131] Optionally, the first dependency condition includes at least one of the following: user identification, location information, and time information; the second dependency condition includes at least one of the following: user identification, location information, and time information. The location information may be the location information of the user or the location information of the device, and the time information may be the time range for executing the action.

[0132] The above dependency conditions (the first dependency condition and the second dependency condition) are conditions for determining whether the first rule engine and the second rule engine match. Only when the two rule engines match can they be merged. Otherwise, they cannot be merged.

[0133] Still Figure 5 The example shown is used to illustrate, Figure 5 In the example, the first rule engine includes a first dependency condition, which is: device type = air conditioning, the position of the air conditioning device and the temperature sensor is less than a certain threshold, and the position of the temperature sensor = LocA. The second rule engine includes a second dependency condition, which is: device type = air conditioning, the position of the air conditioning device and the temperature sensor is less than a certain threshold, and the position of the air conditioning device = LocA. At this point, it can be seen that the first dependency condition matches the second dependency condition. At this point, the first rule engine and the second rule engine are merged to form a third rule engine. If the first dependency condition and the second dependency condition do not match, for example, in the first dependency condition, the position of the temperature sensor = LocA, in the second dependency condition, the position of the air conditioning device = LocB, and the distance between LocA and LocB is greater than the threshold, then the first dependency condition and the second dependency condition do not match, and the first rule engine and the second rule engine cannot be merged.

[0134] In the embodiment of the present invention, optionally, the determining a third rule engine according to the first rule engine and the second rule engine further includes:

[0135] Receiving first data corresponding to the first trigger condition sent by the first distributed terminal;

[0136] Determining whether the first data satisfies the first trigger condition;

[0137] If the condition is met, the second distributed end is triggered to execute the second action.

[0138] The first data is data of an identifier (subjectResourceID) corresponding to the first trigger condition.

[0139] Still Figure 5 The example shown is used for illustration, the first data is the temperature data (i.e., the first data) of the temperature sensor sent by the first distributed end. After the central control end receives the temperature data, it determines whether the temperature is greater than 30 degrees. If so, it triggers the second distributed end to turn on the air conditioner.

[0140] In an embodiment of the present invention, optionally, the receiving of the first data corresponding to the first trigger condition sent by the first distributed terminal also includes: sending a subscription request for subscribing to the first data to the first distributed terminal. Of course, in some other embodiments of the present invention, optionally, the first distributed terminal may also actively report the first data.

[0141] In some embodiments of the present invention, optionally, triggering the second distributed terminal to perform the second action includes: sending a control request for performing the second action to the second distributed terminal.

[0142] In some other embodiments of the present invention, optionally, triggering the second distributed end to perform the second action includes: sending the first data to the second distributed end to trigger the second distributed end to perform the second action according to the second rule engine.

[0143] That is to say, when the first data meets the first trigger condition, the central control end can generate a control request for triggering the second distributed end to perform the second action, or when the first data meets the first trigger condition, the central control end can directly send the first data to the second distributed end, and the second distributed end will perform the second action according to the second rule engine.

[0144] In the embodiment of the present invention, optionally, the method further includes:

[0145] According to the input information of the user in the user interface, a fourth rule engine is formed, wherein the fourth rule engine is used to indicate that the first action is triggered to be executed when the second trigger condition is met, wherein the identifier corresponding to the second trigger condition is uncertain and the identifier corresponding to the first action is uncertain;

[0146] The fourth rule engine is sent to the first distributed end and the second distributed end, so that the first distributed end determines the first rule engine according to the fourth rule engine, and the second distributed end determines the second rule engine according to the fourth rule engine.

[0147] For example, the fourth rule engine is used to input "turn on the air conditioner when the temperature is greater than 30 degrees (the second trigger condition), mode = cooling, temperature = 27 degrees (the first action)" on the user interface provided by the central control end, wherein the identifier (subjectResourceID) corresponding to the second trigger condition in the fourth rule engine is uncertain and empty, and the identifier (objectResourceID) corresponding to the first action is uncertain and empty. In other words, there is no identification information of the temperature sensor and the air conditioner in the fourth rule engine. At this time, the central control end broadcasts the incomplete fourth rule engine to the first distributed end and the second distributed end. The first distributed end with the temperature sensor can generate a first rule engine according to the fourth rule engine, and fill in the identifier (subjectResourceID) corresponding to the second trigger condition with the identifier of the temperature sensor as the first trigger condition. The second distributed end with the air conditioner can generate a second rule engine according to the fourth rule engine, and fill in the identifier (objectResourceID) corresponding to the first action with the identifier of the air conditioner as the second action.

[0148] In the embodiment of the present invention, optionally, the triggering the second distributed end to perform the second action further includes:

[0149] Determine whether there is a fifth rule engine related to the third rule engine, the fifth rule engine is used to indicate triggering a third action when a third trigger condition is met;

[0150] If the fifth rule engine exists and the third trigger condition is met, determining the priority of the third rule engine and the fifth rule engine;

[0151] When the priority of the third rule engine is higher than the priority of the fifth rule engine, the second distributed end is triggered to perform the second action.

[0152] That is to say, the central control terminal can have multiple rule engines, and the related rule engines can have priorities. If the trigger conditions of multiple rule engines are met, the priority is used to determine which rule engine to execute. For example, the third rule engine is "close the window and turn on the air conditioner when the temperature is greater than 30 degrees", and the fifth rule engine is "open the window when the carbon monoxide detector detects that the carbon monoxide is greater than 200PPM". The priority of the third rule engine is lower than that of the fifth rule engine. At this time, if the trigger conditions of both rule engines are met, the fifth rule engine will be executed first.

[0153] In an embodiment of the present invention, the priority of the rule engine can be set by the central control end or by the distributed end, and carried in the rule engine for reporting. For example, when reporting the first rule engine, the first distributed end reports the priority of the first rule engine through the actionPriority attribute. The central control end determines the priority of the third rule engine based on the priority of the first rule engine. The priority can be represented by an identifier representing the priority, for example, priority 1, priority 2, etc.

[0154] Please refer to Figure 6 The embodiment of the present invention further provides a cross-platform device linkage method, which is executed by a first distributed terminal, and the method includes:

[0155] Step 21: Send a first rule engine to the central control end, where the first rule engine is used to instruct to execute a first action when a first trigger condition is met.

[0156] Optionally, the identifier corresponding to the first trigger condition is determined and the identifier corresponding to the first action is uncertain.

[0157] Optionally, the method further includes: sending first data corresponding to the first trigger condition to the central control terminal. Further optionally, according to a subscription request sent by the central control terminal, sending the first data corresponding to the first trigger condition to the central control terminal.

[0158] Optionally, the first rule engine also includes: a first dependency condition, and the first dependency condition is used by the central control end to determine whether the first rule engine matches other rule engines.

[0159] Optionally, the first dependency condition includes at least one of the following: user identification, location information and time information.

[0160] Optionally, before sending the first rule engine to the central control end, the method further includes:

[0161] receiving a fourth rule engine sent by the central control end, the fourth rule engine being used to instruct triggering execution of the first action when the second trigger condition is met, wherein an identifier of a resource corresponding to the second trigger condition is uncertain and an identifier of a resource corresponding to the first action is uncertain;

[0162] The first rule engine is determined according to the fourth rule engine.

[0163] Before determining the first rule engine according to the fourth rule engine, the first distributed end first queries the device according to the fourth rule engine. If the first distributed end has the device in the fourth rule engine, the first rule engine is determined according to the fourth rule engine.

[0164] Optionally, before sending the first rule engine to the central control terminal, the method further includes: forming the first rule engine according to the user input information in the user interface. That is, the first distributed terminal can provide a user interface for the user to input relevant information of the first rule engine.

[0165] Please refer to Figure 7 The embodiment of the present invention further provides a cross-platform device linkage method, which is executed by a second distributed terminal, and the method includes:

[0166] Step 31: Send a second rule engine to the central control end, where the second rule engine is used to instruct to execute a second action when a second trigger condition is met.

[0167] Optionally, the identifier of the resource corresponding to the second trigger condition is uncertain and the identifier of the resource corresponding to the second action is certain.

[0168] Optionally, the second rule engine also includes: a second dependency condition, and the second dependency condition is used by the central control end to determine whether the second rule engine matches other rule engines.

[0169] Optionally, the second dependent condition includes at least one of the following: user identification, location information and time information.

[0170] Optionally, before sending the second rule engine to the central control end, the method further includes:

[0171] receiving a fourth rule engine sent by the central control end, the fourth rule engine being used to instruct triggering execution of the first action when the second trigger condition is met, wherein an identifier of a resource corresponding to the second trigger condition is uncertain and an identifier of a resource corresponding to the first action is uncertain;

[0172] The second rule engine is determined according to the fourth rule engine.

[0173] Before determining the second rule engine according to the fourth rule engine, the second distributed end first queries the device according to the fourth rule engine. If the second distributed end has the device in the fourth rule engine, the second rule engine is determined according to the fourth rule engine.

[0174] Optionally, the method further includes:

[0175] receiving a control request for executing the second action sent by the central control terminal;

[0176] According to the control request, controlling execution of the second action;

[0177] or

[0178] Receiving first data sent by the central control terminal;

[0179] According to the second rule engine, when the first data meets the second trigger condition, the second action is controlled to be executed.

[0180] Optionally, before sending the first rule engine to the central control end, the method further includes:

[0181] The second rule engine is formed according to the user input information in the user interface. That is, the second distributed terminal may provide a user interface for the user to input relevant information of the second rule engine.

[0182] The following describes the cross-platform device linkage method according to an embodiment of the present invention by taking into account specific application scenarios.

[0183] In the following embodiments, platform 1 is the above-mentioned central control terminal, platform 2 is the above-mentioned first distributed terminal, platform 3 is the above-mentioned second distributed terminal, rule engine 1 is the above-mentioned first rule engine, rule engine 2 is the above-mentioned second rule engine, and rule engines 3 and 3a are the above-mentioned third rule engines.

[0184] Example 1

[0185] Please refer to Figure 8 The cross-platform device linkage method of the embodiment of the present invention includes:

[0186] Step 0: Platform 2 and platform 3 establish connections with platform 1 respectively;

[0187] Step 1a: Platform 2 constructs rule engine 1 and sends it to platform 1. Rule engine 1 is: turn on the air conditioner when the temperature of temperature sensor A is greater than 30 degrees, wherein the identifier (subjectResourceID) corresponding to the first trigger condition (temperature greater than 30 degrees) in rule engine 1 is determined, which is the identifier of temperature sensor A, and the identifier (objectResourceID) corresponding to the first action (turn on the air conditioner) is uncertain and is empty. In addition, rule engine 1 also includes the first dependent condition: user ID = user A, location = location A, specifically, location A can be the location of temperature sensor A or the location of user A; when location A is the location of temperature sensor A, it can be achieved that the air conditioner B in rule engine 2 matched with rule engine 1 meets the requirements of location A, thereby achieving accurate linkage between temperature sensor A and air conditioner B and improving the linkage effect; when location A is the location of user A, it can be achieved that the air conditioner B in rule engine 2 matched with rule engine 1 meets the requirements of location A, thereby achieving linkage between devices within a single user.

[0188] Step 1b: Platform 3 constructs rule engine 2 and sends it to platform 1. Rule engine 2 is: turn on air conditioner B when the temperature of the temperature sensor is greater than 30 degrees, wherein the identifier (subjectResourceID) corresponding to the second trigger condition (temperature greater than 30 degrees) in rule engine 2 is uncertain and empty, and the identifier (objectResourceID) corresponding to the second action (turn on air conditioner B) is determined and is the identifier of air conditioner B. In addition, rule engine 2 also includes a second dependent condition: user ID = user A, location = location A, specifically, location A can be the location of air conditioner B or the location of user A; when location A is the location of air conditioner B, the temperature sensor A in rule engine 1 matched with rule engine 2 can meet the requirements of location A, thereby achieving accurate linkage between temperature sensor A and air conditioner B and improving the linkage effect; when location A is the location of user A, the temperature sensor A in rule engine 1 matched with rule engine 2 can meet the requirements of location A, thereby achieving linkage between devices within a single user.

[0189] There is no requirement for the order in which step 1a and step 1b are performed.

[0190] Step 2: Platform 1 determines whether Rule Engine 1 and Rule Engine 2 match based on the dependency conditions in Rule Engine 1 and Rule Engine 2, and then forms Rule Engine 3 based on Rule Engine 1 and Rule Engine 2, wherein the identifier (subjectResourceID) corresponding to the trigger condition (temperature greater than 30 degrees) in Rule Engine 3 is determined to be the identifier of temperature sensor A, and the identifier (objectResourceID) corresponding to the action (turn on air conditioner B) is determined to be the identifier of air conditioner B. Platform 1 can determine whether Rule Engine 1 and Rule Engine 2 match based on the dependency conditions. If all or part of the first dependency condition is the same or equivalent to the corresponding part in the second dependency condition, it is further determined whether the device type corresponding to subjectResourceID and objectResourceID in Rule Engine 1 and the device type corresponding to subjectResourceID and objectResourceID in Rule Engine 2 match. If they match, it is determined that Rule Engine 1 and Rule Engine 2 match.

[0191] When rule engine 1 and rule engine 2 do not include dependent conditions, platform 1 can determine whether the user identifiers corresponding to rule engine 1 and rule engine 2 are the same, and further determine whether the device type corresponding to subjectResourceID and objectResourceID in rule engine 1 and the device type corresponding to subjectResourceID and objectResourceID in rule engine 2 match. If they match, it is determined that rule engine 1 and rule engine 2 match.

[0192] Step 3: Platform 1 sends a subscription request for subscribing to the temperature data of temperature sensor A to platform 2.

[0193] Step 4: Platform 1 receives the temperature data of temperature sensor A sent by platform 2, and when the temperature data of temperature sensor A meets the trigger condition in rule engine 3, platform 1 sends a control request for controlling the air conditioner B to turn on to platform 3.

[0194] Step 5: Platform 3 controls air conditioner B to turn on according to the control request.

[0195] Example 2

[0196] Please refer to Fig. 9 The cross-platform device linkage method of the embodiment of the present invention includes:

[0197] Step 0: Platform 2 and platform 3 establish connections with platform 1 respectively;

[0198] Step 1a: Platform 2 constructs rule engine 1 and engine rule 1a. Rule engine 1 is: turn on the air conditioner when the temperature of temperature sensor A is greater than 30 degrees, wherein the identifier (subjectResourceID) corresponding to the first trigger condition (temperature greater than 30 degrees) in rule engine 1 is determined to be the identifier of temperature sensor A, and the identifier (objectResourceID) corresponding to the first action (turn on the air conditioner) is uncertain and is empty. In addition, rule engine 1 also includes the first dependent condition: user ID = user A, location = location A. Rule engine 1a is: close window C when the temperature of temperature sensor A is less than 10 degrees, wherein the identifier (subjectResourceID) corresponding to the trigger condition (temperature less than 10 degrees) in rule engine 1a is determined to be the identifier of temperature sensor A, and the identifier (objectResourceID) corresponding to the action (open window C) is determined to be the identifier of window C. That is, rule engine 1 is an incomplete rule engine. There is no air-conditioning equipment in platform 2, so the air-conditioning cannot be controlled to turn on. Rule engine 1a is a complete rule engine. There is window C in platform 2, and window C can be controlled to close. Therefore, platform 2 can execute rule engine 1a locally. If rule engine 1 cannot be executed locally, rule engine 1 will be sent to platform 1.

[0199] Step 1b: Platform 3 constructs rule engine 2 and rule engine 2a. Rule engine 2 is: turn on air conditioner B when the temperature of the temperature sensor is greater than 30 degrees, wherein the identifier (subjectResourceID) corresponding to the second trigger condition (temperature greater than 30 degrees) in rule engine 2 is uncertain and empty, and the identifier (objectResourceID) corresponding to the second action (turn on air conditioner B) is determined and is the identifier of air conditioner B. In addition, rule engine 2 also includes a second dependent condition: user ID = user A, location = location A. Rule engine 2a is: turn on camera D when the door is opened, wherein the identifier (subjectResourceID) corresponding to the trigger condition (door E is open) in rule engine 2a is determined and is the identifier of door E, and the identifier (objectResourceID) corresponding to the action (turn on camera D) is determined and is the identifier of camera D. That is, rule engine 2 is an incomplete rule engine. There is no temperature sensor in platform 3, so it is impossible to determine whether the trigger condition is met. Rule engine 2a is a complete rule engine. There is door E and camera D in platform 3. Therefore, platform 3 can execute rule engine 2a locally. If rule engine 2 cannot be executed locally, rule engine 2 will be sent to platform 1.

[0200] There is no requirement for the order in which step 1a and step 1b are performed.

[0201] Step 2: Platform 1 determines that rule engine 1 and rule engine 2 are matched based on the dependency conditions in rule engine 1 and rule engine 2, and then forms rule engine 3 based on rule engine 1 and rule engine 2, wherein the identifier (subjectResourceID) corresponding to the trigger condition (temperature greater than 30 degrees) in rule engine 3 is determined to be the identifier of temperature sensor A, and the identifier (objectResourceID) corresponding to the action (turn on air conditioner B) is determined to be the identifier of air conditioner B.

[0202] Step 3: Platform 1 sends a subscription request for subscribing to the temperature data of temperature sensor A to platform 2.

[0203] Step 4: Platform 1 receives the temperature data of temperature sensor A sent by platform 2, and when the temperature data of temperature sensor A meets the trigger condition in rule engine 3, platform 1 sends a control request for controlling the air conditioner B to turn on to platform 3.

[0204] Step 5: Platform 3 controls air conditioner B to turn on according to the control request.

[0205] Example 3

[0206] Please refer to Fig.10 The cross-platform device linkage method of the embodiment of the present invention includes:

[0207] Step 0: Platform 2 and platform 3 establish connections with platform 1 respectively;

[0208] Step 1a: Platform 2 constructs rule engine 1 and engine rule 1a. Rule engine 1 is: when the temperature of temperature sensor A is greater than 30 degrees, close the window and turn on the air conditioner. In the rule engine 1, the identifier (subjectResourceID) corresponding to the trigger condition (temperature greater than 30 degrees) is determined to be the identifier of temperature sensor A, and the identifier (objectResourceID) corresponding to the action (close the window and turn on the air conditioner) is uncertain and empty. In addition, rule engine 1 also includes the first dependent condition: user ID = user A, location = location A. Rule engine 1a is: when the CO detected by CO detector F is greater than 200PPM, open the window. In the rule engine 1a, the identifier (subjectResourceID) corresponding to the trigger condition (CO greater than 200PPM) is determined to be the identifier of CO detector F, and the identifier (objectResourceID) corresponding to the action (open the window) is uncertain and empty. In addition, rule engine 1a also includes the first dependent condition: user ID = user A, location = location A. That is, both rule engines 1 and 1a are incomplete rule engines. Therefore, platform 2 cannot execute rule engines 1 and 1a locally, and then sends rule engines 1 and 1a to platform 1.

[0209] Step 1b: Platform 3 constructs rule engine 2 and rule engine 2a. Rule engine 2 is: when the temperature of the temperature sensor is greater than 30 degrees, close window C and turn on air conditioner B. In the rule engine 2, the identifier (subjectResourceID) corresponding to the second trigger condition (temperature greater than 30 degrees) is uncertain and empty, and the identifier (objectResourceID) corresponding to the second action (close window C and turn on air conditioner B) is determined, which is the identifier of window C and air conditioner B. In addition, rule engine 2 also includes a second dependent condition: user ID = user A, location = location A. Rule engine 2a is: when the CO detected by the CO detector is greater than 200PPM, open window C. In the rule engine 2a, the identifier (subjectResourceID) corresponding to the trigger condition (CO greater than 200PPM) is uncertain and empty, and the identifier (objectResourceID) corresponding to the action (open window C) is determined, which is the identifier of window C. In addition, rule engine 1a also includes a first dependent condition: user ID = user A, location = location A. That is, both rule engines 2 and 2a are incomplete rule engines. Therefore, platform 3 cannot execute rule engines 2 and 2a locally, and then sends rule engines 2 and 2a to platform 1.

[0210] There is no requirement for the order in which step 1a and step 1b are performed.

[0211] Step 2: Platform 1 determines that rule engine 1 and rule engine 2 are matched based on the dependency conditions in rule engine 1 and rule engine 2, and then forms rule engine 3 based on rule engine 1 and rule engine 2, wherein the identifier (subjectResourceID) corresponding to the trigger condition (temperature greater than 30 degrees) in rule engine 3 is determined to be the identifier of temperature sensor A, and the identifier (objectResourceID) corresponding to the action (close window C and turn on air conditioner B) is determined to be the identifier of window C and air conditioner B.

[0212] The platform determines that rule engine 1a and rule engine 2a match based on the dependency conditions in rule engine 1a and rule engine 2a, and then forms rule engine 3a based on rule engine 1a and rule engine 2a, wherein the identifier (subjectResourceID) corresponding to the trigger condition (CO is greater than 200PPM) in rule engine 3a is determined to be the identifier of CO detector F, and the identifier (objectResourceID) corresponding to the action (open window C) is determined to be the identifier of window C.

[0213] The platform determines that rule engine 3 and rule engine 3a are related, and can set priorities for rule engine 3 and rule engine 3a, for example, the priority of rule engine 3 is lower than the priority of rule engine 3a.

[0214] The priority may also be set by platform 2 or platform 3 and carried in the rule engine and reported to platform 1.

[0215] Step 3: Platform 1 sends a subscription request for subscribing to the temperature data of temperature sensor A and for subscribing to the detection data of CO detector F to platform 2.

[0216] Step 4: Platform 1 receives the temperature data of temperature sensor A and the detection data of CO detector F sent by platform 2. If the temperature data of temperature sensor A meets the trigger condition in rule engine 3, and at the same time, the detection data of CO detector F also meets the trigger condition of rule engine 3a, since the priority of rule engine 3 is lower than that of rule engine 3a, at this time, rule engine 3a is executed to send a control request for controlling the opening of window C to platform 3.

[0217] Step 5: Platform 3 controls window C to open according to the control request.

[0218] Example 4

[0219] Please refer to Fig.11 The cross-platform device linkage method of the embodiment of the present invention includes:

[0220] Step 0 to Step 3: See Example 1.

[0221] Step 4: Platform 1 receives the temperature data of temperature sensor A sent by platform 2, and when the temperature data of temperature sensor A meets the trigger condition in rule engine 3, platform 1 sends the temperature data of temperature sensor A to platform 3.

[0222] Step 5: Platform 3 triggers the execution of rule engine 2 according to the temperature data of temperature sensor A.

[0223] Example 5

[0224] Please refer to Fig.12 The cross-platform device linkage method of the embodiment of the present invention includes:

[0225] Step 0: Platform 2 and platform 3 establish connections with platform 1 respectively;

[0226] Step 1: Platform 1 constructs rule engine 4, which is: turn on the air conditioner when the temperature is greater than 30 degrees, where the identifier (subjectResourceID) corresponding to the trigger condition (temperature greater than 30 degrees) in rule engine 4 is uncertain and empty, and the identifier (objectResourceID) corresponding to the action (turn on the air conditioner) is uncertain and empty. In addition, rule engine 4 can also include dependent conditions: user ID = user A, location = location A.

[0227] Step 2a: Platform 1 sends rule engine 4 to platform 2 and platform 3.

[0228] Step 3a: Platform 2 retrieves local devices according to rule engine 4, and determines that the local devices include a temperature sensor. Then, rule engine 1 is constructed according to rule engine 4 and sent to platform 1. Rule engine 1 is: turn on the air conditioner when the temperature of temperature sensor A is greater than 30 degrees, wherein the identifier (subjectResourceID) corresponding to the first trigger condition (temperature greater than 30 degrees) in rule engine 1 is determined to be the identifier of temperature sensor A, and the identifier (objectResourceID) corresponding to the first action (turn on the air conditioner) is uncertain and is empty. In addition, rule engine 1 may also include a first dependent condition: user ID = user A, location = location A. When rule engine 4 includes dependent conditions, platform 2 also filters local devices according to the dependent conditions so that the local devices meet the dependent conditions of rule engine 4.

[0229] Step 3b: Platform 3 retrieves local devices according to rule engine 4 and determines that the local devices include air conditioners. Then, rule engine 2 is constructed according to rule engine 4 and sent to platform 1. Rule engine 2 is: turn on air conditioner B when the temperature of the temperature sensor is greater than 30 degrees. Among them, the identifier (subjectResourceID) corresponding to the second trigger condition (temperature greater than 30 degrees) in rule engine 2 is uncertain and empty, and the identifier (objectResourceID) corresponding to the second action (turn on air conditioner B) is determined, which is the identifier of air conditioner B. In addition, rule engine 2 may also include a second dependent condition: user ID = user A, location = location A. When rule engine 4 includes dependent conditions, platform 3 also filters local devices according to the dependent conditions so that the local devices meet the dependent conditions of rule engine 4.

[0230] There is no requirement for the order in which step 3a and step 3b are performed.

[0231] Step 4: Platform 1 determines that rule engine 1 and rule engine 2 are matched based on the dependency conditions in rule engine 1 and rule engine 2, and then forms rule engine 3 based on rule engine 1 and rule engine 2, wherein the identifier (subjectResourceID) corresponding to the trigger condition (temperature greater than 30 degrees) in rule engine 3 is determined to be the identifier of temperature sensor A, and the identifier (objectResourceID) corresponding to the action (turn on air conditioner B) is determined to be the identifier of air conditioner B.

[0232] Step 5: Platform 1 sends a subscription request for subscribing to the temperature data of temperature sensor A to platform 2.

[0233] Step 6: Platform 1 receives the temperature data of temperature sensor A sent by platform 2, and when the temperature data of temperature sensor A meets the trigger condition in rule engine 3, platform 1 sends the temperature data of temperature sensor A to platform 3.

[0234] Step 7: Platform 3 triggers the execution of rule engine 2 according to the temperature data of temperature sensor A.

[0235] Example 6

[0236] Please refer to Fig.13 The cross-platform device linkage method of the embodiment of the present invention is different from that of embodiment 5 in that:

[0237] Step 4: Platform 1 receives the temperature data of temperature sensor A sent by platform 2, and when the temperature data of temperature sensor A meets the trigger condition in rule engine 3, platform 1 sends a control request for controlling the air conditioner B to turn on to platform 3.

[0238] Step 5: Platform 3 controls air conditioner B to turn on according to the control request.

[0239] Please refer to Fig.14 The embodiment of the present invention further provides a cross-platform device linkage apparatus 100, comprising:

[0240] A first receiving module 101 is used to receive a first rule engine sent by a first distributed terminal, where the first rule engine is used to instruct to execute a first action when a first trigger condition is met;

[0241] A second receiving module 102, configured to receive a second rule engine sent by a second distributed terminal, wherein the second rule engine is configured to instruct to execute a second action when a second trigger condition is met;

[0242] The fusion module 103 is used to determine a third rule engine according to the first rule engine and the second rule engine, and the third rule engine is used to instruct to execute the second action when the first trigger condition is met.

[0243] Optionally, the cross-platform device linkage apparatus 100 further includes:

[0244] A third receiving module, configured to receive first data corresponding to the first trigger condition sent by the first distributed terminal;

[0245] A judging module, used for judging whether the first data satisfies the first trigger condition;

[0246] A trigger module is used to trigger the second distributed end to perform the second action if the condition is met.

[0247] Optionally, the first rule engine includes a first dependency condition, and the second rule engine includes a second dependency condition; the fusion module 103 is used to determine whether the first dependency condition and the second dependency condition match; if they match, the first rule engine and the second rule engine are merged to form a third rule engine.

[0248] Optionally, the fusion module 103 is used to, if the identifier corresponding to the first trigger condition is certain and the identifier corresponding to the second trigger condition is uncertain, then the third rule engine adopts the first trigger condition; if the identifier corresponding to the first action is uncertain and the identifier corresponding to the second action is certain, then the third rule engine adopts the second action.

[0249] Optionally, the first dependency condition includes at least one of the following: user identification, location information and time information;

[0250] The second dependent condition includes at least one of the following: user identification, location information and time information.

[0251] Optionally, the cross-platform device linkage apparatus 100 further includes:

[0252] The first sending module is used to send a subscription request for subscribing to the first data to the first distributed terminal.

[0253] Optionally, the trigger module is used to send a control request for executing the second action to the second distributed end; or to send the first data to the second distributed end to trigger the second distributed end to execute the second action according to the second rule engine.

[0254] Optionally, the cross-platform device linkage apparatus 100 further includes:

[0255] A construction module, configured to form a fourth rule engine according to input information of a user in a user interface, wherein the fourth rule engine is configured to indicate that the first action is triggered to be executed when the second trigger condition is satisfied, wherein the identifier corresponding to the second trigger condition is uncertain and the identifier corresponding to the first action is uncertain;

[0256] The second sending module is used to send the fourth rule engine to the first distributed end and the second distributed end, so that the first distributed end determines the first rule engine according to the fourth rule engine, and the second distributed end determines the second rule engine according to the fourth rule engine.

[0257] Optionally, the trigger module is used to determine whether there is a fifth rule engine related to the third rule engine, and the fifth rule engine is used to indicate that a third action is triggered when a third trigger condition is met; if the fifth rule engine exists and the third trigger condition is met, determine the priority of the third rule engine and the fifth rule engine; when the priority of the third rule engine is higher than the priority of the fifth rule engine, trigger the second distributed end to perform the second action.

[0258] Please refer to Fig.15 The embodiment of the present invention further provides a cross-platform device linkage apparatus 200, comprising: a first sending module 210, used to send a first rule engine to a central control terminal, wherein the first rule engine is used to instruct to execute a first action when a first trigger condition is met.

[0259] Optionally, the identifier corresponding to the first trigger condition is determined and the identifier corresponding to the first action is uncertain.

[0260] Optionally, the cross-platform device linkage apparatus 200 further includes:

[0261] The second sending module is used to send first data corresponding to the first trigger condition to the central control end.

[0262] Optionally, the first rule engine also includes: a first dependency condition, and the first dependency condition is used by the central control end to determine whether the first rule engine matches other rule engines.

[0263] Optionally, the first dependency condition includes at least one of the following: user identification, location information and time information.

[0264] Optionally, the cross-platform device linkage apparatus 200 further includes:

[0265] a receiving module, configured to receive a fourth rule engine sent by the central control end, wherein the fourth rule engine is configured to indicate that the first action is triggered to be executed when the second trigger condition is met, wherein the identifier of the resource corresponding to the second trigger condition is uncertain and the identifier of the resource corresponding to the first action is uncertain;

[0266] A first building module is used to determine the first rule engine according to the fourth rule engine.

[0267] Optionally, the cross-platform device linkage apparatus 200 further includes:

[0268] The second building module is used to form the first rule engine according to the user input information in the user interface.

[0269] Please refer to Fig.16 The embodiment of the present invention further provides a cross-platform device linkage apparatus 300, comprising: a first sending module 301, used to send a second rule engine to the central control end, wherein the second rule engine is used to instruct to execute a second action when a second trigger condition is met.

[0270] Optionally, the identifier of the resource corresponding to the second trigger condition is uncertain and the identifier of the resource corresponding to the second action is certain.

[0271] Optionally, the second rule engine also includes: a second dependency condition, and the second dependency condition is used by the central control end to determine whether the second rule engine matches other rule engines.

[0272] Optionally, the second dependent condition includes at least one of the following: user identification, location information and time information.

[0273] Optionally, the cross-platform device linkage apparatus 300 further includes:

[0274] A first receiving module, configured to receive a fourth rule engine sent by the central control end, wherein the fourth rule engine is configured to indicate that the first action is triggered to be executed when the second trigger condition is met, wherein the identifier of the resource corresponding to the second trigger condition is uncertain and the identifier of the resource corresponding to the first action is uncertain;

[0275] The first building module is used to determine the second rule engine according to the fourth rule engine.

[0276] Optionally, the cross-platform device linkage apparatus 300 further includes:

[0277] A second receiving module, used to receive a control request sent by the central control terminal for executing the second action;

[0278] A first control module, configured to control the execution of the second action according to the control request;

[0279] or

[0280] A third receiving module, used for receiving the first data sent by the central control terminal;

[0281] The second control module is used to control the execution of the second action according to the second rule engine when the first data meets the second trigger condition.

[0282] Optionally, the cross-platform device linkage apparatus 300 further includes:

[0283] The second building module is used to form the second rule engine according to the user input information in the user interface.

[0284] Please refer to Fig.17 An embodiment of the present invention further provides an electronic device 400, including a processor 401, a memory 402, and a computer program stored in the memory 402 and executable on the processor 401. When the computer program is executed by the processor 401, each process of the above-mentioned cross-platform device linkage method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0285] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the cross-platform device linkage method embodiment described above is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0286] It should be noted that, in this article, the term "includes", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0287] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0288] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.< / action> < / action>

Claims

1. A cross-platform device linkage method, characterized in that: include: Receiving a first rule engine sent by a first distributed terminal, wherein the first rule engine is used to instruct to execute a first action when a first trigger condition is met; Receive a second rule engine sent by a second distributed terminal, where the second rule engine is used to instruct to execute a second action when a second trigger condition is met; A third rule engine is determined according to the first rule engine and the second rule engine, and the third rule engine is used to instruct to execute the second action when the first trigger condition is met.

2. The method according to claim 1, characterized in that The step of determining a third rule engine according to the first rule engine and the second rule engine further comprises: Receiving first data corresponding to the first trigger condition sent by the first distributed terminal; Determining whether the first data satisfies the first trigger condition; If the condition is met, the second distributed end is triggered to execute the second action.

3. The method according to claim 1, characterized in that The first rule engine includes a first dependency condition, and the second rule engine includes a second dependency condition; Determining a third rule engine according to the first rule engine and the second rule engine comprises: Determining whether the first dependency condition and the second dependency condition match; If there is a match, the first rule engine and the second rule engine are merged to form a third rule engine.

4. The method according to claim 1 or 3, characterized in that: The determining a third rule engine according to the first rule engine and the second rule engine includes: If the identifier corresponding to the first trigger condition is determined and the identifier corresponding to the second trigger condition is uncertain, the third rule engine adopts the first trigger condition; If the identifier corresponding to the first action is uncertain and the identifier corresponding to the second action is certain, the third rule engine adopts the second action.

5. The method according to claim 3, characterized in that: The first dependency condition includes at least one of the following: user identification, location information, and time information; The second dependent condition includes at least one of the following: user identification, location information and time information.

6. The method according to claim 2, characterized in that The receiving first data corresponding to the first trigger condition sent by the first distributed terminal also includes: Send a subscription request for subscribing to the first data to the first distributed end.

7. The method according to claim 2, characterized in that The triggering the second distributed end to perform the second action includes: Sending a control request for executing the second action to the second distributed terminal; or The first data is sent to the second distributed end to trigger the second distributed end to perform the second action according to the second rule engine.

8. The method according to claim 1, characterized in that Also includes: According to the input information of the user in the user interface, a fourth rule engine is formed, wherein the fourth rule engine is used to indicate that the first action is triggered to be executed when the second trigger condition is met, wherein the identifier corresponding to the second trigger condition is uncertain and the identifier corresponding to the first action is uncertain; The fourth rule engine is sent to the first distributed end and the second distributed end, so that the first distributed end determines the first rule engine according to the fourth rule engine, and the second distributed end determines the second rule engine according to the fourth rule engine.

9. The method according to claim 2, characterized in that: The triggering the second distributed end to perform the second action further includes: Determine whether there is a fifth rule engine related to the third rule engine, the fifth rule engine is used to indicate triggering a third action when a third trigger condition is met; If the fifth rule engine exists and the third trigger condition is met, determining the priority of the third rule engine and the fifth rule engine; When the priority of the third rule engine is higher than the priority of the fifth rule engine, the second distributed end is triggered to perform the second action.

10. A cross-platform device linkage method, characterized in that: include: A first rule engine is sent to the central control end, where the first rule engine is used to instruct to execute a first action when a first trigger condition is met.

11. The method according to claim 10, characterized in that The identifier corresponding to the first trigger condition is determined, and the identifier corresponding to the first action is uncertain.

12. The method according to claim 10, characterized in that Also includes: Sending first data corresponding to the first trigger condition to the central control end.

13. The method according to claim 10, characterized in that The first rule engine also includes: a first dependency condition, and the first dependency condition is used by the central control end to determine whether the first rule engine matches other rule engines.

14. The method according to claim 13, characterized in that The first dependency condition includes at least one of the following: user identification, location information and time information.

15. The method according to claim 10, characterized in that Before sending the first rule engine to the central control terminal, the method further includes: receiving a fourth rule engine sent by the central control end, the fourth rule engine being used to indicate triggering execution of the first action when a second trigger condition is met, wherein an identifier of a resource corresponding to the second trigger condition is uncertain and an identifier of a resource corresponding to the first action is uncertain; The first rule engine is determined according to the fourth rule engine.

16. The method according to claim 10, characterized in that Before sending the first rule engine to the central control terminal, the method further includes: The first rule engine is formed according to the user input information in the user interface.

17. A cross-platform device linkage method, characterized in that: include: A second rule engine is sent to the central control end, where the second rule engine is used to instruct to execute a second action when a second trigger condition is met.

18. The method according to claim 17, characterized in that The identifier of the resource corresponding to the second trigger condition is uncertain and the identifier of the resource corresponding to the second action is certain.

19. The method according to claim 17, characterized in that The second rule engine also includes: a second dependency condition, and the second dependency condition is used by the central control end to determine whether the second rule engine matches other rule engines.

20. The method according to claim 19, characterized in that The second dependent condition includes at least one of the following: user identification, location information and time information.

21. The method according to claim 17, characterized in that Before sending the second rule engine to the central control terminal, the method further includes: receiving a fourth rule engine sent by the central control end, the fourth rule engine being used to indicate triggering execution of a first action when the second trigger condition is met, wherein an identifier of a resource corresponding to the second trigger condition is uncertain and an identifier of a resource corresponding to the first action is uncertain; The second rule engine is determined according to the fourth rule engine.

22. The method according to claim 17, characterized in that Also includes: receiving a control request for executing the second action sent by the central control terminal; According to the control request, controlling execution of the second action; or Receiving first data sent by the central control terminal; According to the second rule engine, when the first data meets the second trigger condition, the second action is controlled to be executed.

23. The method according to claim 17, characterized in that Before sending the first rule engine to the central control terminal, the method further includes: The second rule engine is formed according to the user input information in the user interface.

24. A cross-platform device linkage device, characterized in that: include: A first receiving module, configured to receive a first rule engine sent by a first distributed terminal, wherein the first rule engine is configured to instruct to execute a first action when a first trigger condition is met; A second receiving module, configured to receive a second rule engine sent by a second distributed terminal, wherein the second rule engine is configured to instruct to execute a second action when a second trigger condition is met; A fusion module is used to determine a third rule engine according to the first rule engine and the second rule engine, and the third rule engine is used to instruct to execute the second action when the first trigger condition is met.

25. A cross-platform device linkage device, characterized in that: include: The first sending module is used to send a first rule engine to the central control end, where the first rule engine is used to instruct to execute a first action when a first trigger condition is met.

26. A cross-platform device linkage device, characterized in that: include: The first sending module is used to send a second rule engine to the central control end, where the second rule engine is used to instruct to execute a second action when a second trigger condition is met.

27. An electronic device, characterized in that: include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the cross-platform device linkage method as described in any one of claims 1 to 9; or, when executed by the processor, the program, when executed by the processor, implements the steps of the cross-platform device linkage method as described in any one of claims 10 to 16; or, when executed by the processor, the program, when executed by the processor, implements the steps of the cross-platform device linkage method as described in any one of claims 17 to 23.

28. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the cross-platform device linkage method as described in any one of claims 1 to 9; or, when executed by a processor, implements the steps of the cross-platform device linkage method as described in any one of claims 10 to 16; or, when executed by a processor, implements the steps of the cross-platform device linkage method as described in any one of claims 17 to 23.