Movatterモバイル変換


[0]ホーム

URL:


CN113037530A - Multi-gateway scene implementation method and system, electronic device and storage medium - Google Patents

Multi-gateway scene implementation method and system, electronic device and storage medium
Download PDF

Info

Publication number
CN113037530A
CN113037530ACN201911358036.6ACN201911358036ACN113037530ACN 113037530 ACN113037530 ACN 113037530ACN 201911358036 ACN201911358036 ACN 201911358036ACN 113037530 ACN113037530 ACN 113037530A
Authority
CN
China
Prior art keywords
gateway
scene
condition
scenario
action
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911358036.6A
Other languages
Chinese (zh)
Other versions
CN113037530B (en
Inventor
陈寿宏
彭飞
王为强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Midea Group Co Ltd
Original Assignee
Midea Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Midea Group Co LtdfiledCriticalMidea Group Co Ltd
Priority to CN201911358036.6ApriorityCriticalpatent/CN113037530B/en
Publication of CN113037530ApublicationCriticalpatent/CN113037530A/en
Application grantedgrantedCritical
Publication of CN113037530BpublicationCriticalpatent/CN113037530B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention relates to the field of network communication, and provides a method and a system for realizing a multi-gateway scene, electronic equipment and a storage medium. The method comprises the following steps: splitting the scene condition of the first scene to obtain a single gateway scene condition, and splitting the scene action of the first scene to obtain a single gateway scene action; respectively sending and storing the single gateway scene condition and the single gateway scene action to the corresponding gateway; and receiving a message that the single gateway scene condition is triggered, and determining to send a command for executing the scene action of the first scene to a gateway related to the first scene according to the triggered single gateway scene condition so as to enable the gateway to execute the scene action of the first scene. The multi-gateway scene implementation method, the multi-gateway scene implementation system, the electronic device and the storage medium provided by the embodiment of the invention judge whether the multi-gateway and the condition are met or not through the device state information stored in the cloud server, so that the judgment logic is simplified, and the communication overhead between the cloud server and the gateway is reduced.

Description

Multi-gateway scene implementation method and system, electronic device and storage medium
Technical Field
The present invention relates to the field of network communications, and in particular, to a method and a system for implementing a multi-gateway scenario, an electronic device, and a storage medium.
Background
In the internet of things, a scenario describes interactions between different devices. A scene is generally divided into two parts, namely a scene condition and a scene action. In one scenario, a scenario action is triggered only when a scenario condition is satisfied. For example, in a scenario in which the air conditioning equipment is automatically started and stopped according to the indoor temperature, the scenario condition is that the temperature sensor detects that the indoor temperature reaches 28 degrees centigrade, and the corresponding scenario action is used for starting the air conditioning equipment.
In large-area intelligent home application places such as villas, the problem of incomplete network coverage can occur due to excessively large and complicated house structures, and a plurality of gateways need to be configured to realize full-house intelligent connection. In a multi-gateway environment, the devices involved in some scenarios are located under different gateways. Such scenarios are referred to as multi-gateway scenarios.
In the prior art, a multi-gateway scenario is mainly realized by the following methods:
1. a primary and secondary gateway: networking is performed among a plurality of gateways, one of the gateways serves as a mother gateway and is responsible for networking and cloud communication of the whole gateway network, and the gateway can be understood as a gateway in the gateway.
2. Multi-gateway cross networking: the gateways are connected with each other so as to inquire the state and transmit the instruction.
The implementation modes have certain defects when the multi-gateway scene is realized.
In the primary and secondary gateway scheme, the primary gateway serves as a gateway in the gateway and becomes a bottleneck of the whole network, and once the primary gateway breaks down, the whole network is in a paralyzed state.
In the scheme of multi-gateway cross networking, a plurality of gateways need to be connected and communicated with each other pairwise, and the complexity of gateway firmware logic is increased. And the gateway is used as an end node in the Internet of things, is limited by the cost problem, and has relatively poor hardware performance. The more connections are established in the scheme, the more hardware resources are occupied, and each gateway needs to pay attention to the state change of equipment under all other gateways, so that the core processing capacity of the gateway is greatly influenced. In addition, most of the schemes are wireless connection schemes, all gateways must be in the same local area network and cannot meet the environmental requirements of multiple local area networks, and when the network fails, all equipment is offline and cannot be controlled.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides a multi-gateway scenario implementation method, which simplifies the judgment logic of multi-gateway conditions in the multi-gateway scenario and reduces the communication overhead between a cloud server and a gateway.
The invention also provides a multi-gateway scene implementation method.
The invention further provides a multi-gateway scene implementation method.
The invention also provides a multi-gateway scene implementation system.
The invention further provides an electronic device.
The invention further proposes a non-transitory computer-readable storage medium.
According to a first aspect of the present invention, a method for implementing a multi-gateway scenario includes:
splitting scene conditions of a first scene to obtain single gateway scene conditions, and splitting scene actions of the first scene to obtain single gateway scene actions; respectively sending and storing the single gateway scene conditions and the single gateway scene actions to corresponding gateways; wherein the scene condition of the first scene is a multi-gateway scene condition;
receiving a message that a single gateway scene condition is triggered, and determining to send a command for executing a scene action of a first scene to a gateway related to the first scene according to the triggered single gateway scene condition so that the gateway executes the scene action of the first scene; wherein,
the multi-gateway scene condition is used for describing a condition formed by devices under different gateways; the single gateway scene condition is used for describing conditions formed by devices under the same gateway; the single gateway scenario action is used to describe an action to be performed by devices under the same gateway when the single gateway scenario condition is satisfied.
According to the multi-gateway scene implementation method provided by the embodiment of the invention, whether the multi-gateway and the condition are met or not is judged through the equipment state information stored in the cloud server, so that the judgment logic is simplified, and the communication overhead between the cloud server and the gateway is reduced; by splitting the multi-gateway conditions and the multi-gateway actions, each gateway can independently realize a multi-gateway scene, decoupling between the gateways is realized, and flexibility of network distribution and processing performance of the gateways are improved.
According to one embodiment of the invention, the multi-gateway scenario condition comprises a multi-gateway and scenario condition; correspondingly, the receiving the message that the single gateway scenario condition is triggered includes:
receiving state change information of a device related to a first single-gateway scenario condition; wherein the first single-gateway scenario condition is a single-gateway scenario condition obtained by splitting the multiple gateways and a condition;
updating corresponding equipment state information stored in the cloud server according to the state change information, and returning a message that the equipment state information is updated successfully;
receiving a message that a first single gateway scenario condition is triggered, wherein the message that the first single gateway scenario condition is triggered is sent after a state change of a device related to the first single gateway scenario condition meets a trigger condition of the first single gateway scenario condition.
According to one embodiment of the invention, the multi-gateway context condition comprises a multi-gateway or context condition; correspondingly, the receiving the message that the single gateway scenario condition is triggered includes:
receiving a message that a second single-gateway scenario condition is triggered; wherein the second single-gateway scenario condition is a single-gateway scenario condition resulting from the multi-gateway or conditional split; the message that the second single gateway scenario condition is triggered is a message that is sent after the state change of the device related to the second single gateway scenario condition satisfies the triggering condition of the second single gateway scenario condition.
According to an embodiment of the present invention, the determining to send a command to a gateway related to the first scenario to perform a scenario action of the first scenario according to the triggered single gateway scenario condition includes:
inquiring whether other first single gateway scene conditions in the first scene are triggered or not according to the triggered first single gateway scene conditions;
when all first single-gateway scenario conditions in the first scenario are triggered, sending a command to execute a scenario action of the first scenario to all gateways associated with the first scenario.
According to an embodiment of the present invention, the determining to send a command to a gateway related to the first scenario to perform a scenario action of the first scenario according to the triggered single gateway scenario condition includes:
sending a command to perform a scene action for the first scene to all gateways associated with the first scene according to the triggered second single-gateway scene condition.
According to a second aspect of the present invention, a method for implementing a multi-gateway scenario includes:
the first gateway receives and stores a single gateway scene condition obtained by splitting the scene condition of the first scene and a single gateway scene action obtained by splitting the scene action of the first scene;
the single gateway scene condition is triggered, and a message that the single gateway scene condition is triggered is sent to a cloud server; wherein,
the scene condition of the first scene is a multi-gateway scene condition; the multi-gateway scene condition is used for describing a condition formed by devices under different gateways; the single gateway scene condition is used for describing conditions formed by devices under the same gateway; the single gateway scenario action is used to describe an action to be performed by devices under the same gateway when the single gateway scenario condition is satisfied.
According to the multi-gateway scene implementation method provided by the embodiment of the invention, whether the multi-gateway or the condition is met is directly judged at the gateway, so that the judgment logic is simplified, and the communication overhead between the cloud server and the gateway is reduced; by splitting the multi-gateway conditions and the multi-gateway actions, each gateway can independently realize a multi-gateway scene, decoupling between the gateways is realized, and flexibility of network distribution and processing performance of the gateways are improved.
According to one embodiment of the invention, the multi-gateway scenario condition comprises a multi-gateway and scenario condition; correspondingly, the step of sending the message that the single gateway scenario condition is triggered to the cloud server when the single gateway scenario condition is triggered comprises:
the method comprises the steps that the state of equipment related to a first single gateway scene condition changes, and state change information of the equipment is sent to a cloud server; wherein the first single-gateway scenario condition is a single-gateway scenario condition obtained by splitting the multiple gateways and a condition;
after receiving a message that the device state information of the cloud server is successfully updated, determining that the state change of the device related to the first single-gateway scene condition meets the trigger condition of the first single-gateway scene condition, and sending the message that the first single-gateway scene condition is triggered to the cloud server.
According to one embodiment of the invention, the multi-gateway context condition comprises a multi-gateway or context condition; correspondingly, the step of sending the message that the single gateway scenario condition is triggered to the cloud server when the single gateway scenario condition is triggered comprises:
determining that a change in state of a device associated with a second single-gateway scenario condition satisfies a trigger condition of the second single-gateway scenario condition; wherein the second single-gateway scenario condition is a single-gateway scenario condition resulting from the multi-gateway or conditional split;
executing scene actions within the range of the first gateway according to the information of the single gateway scene actions corresponding to the second single gateway scene conditions;
and sending a message that the second single gateway scene condition is triggered.
According to a third aspect of the embodiment of the invention, a method for implementing a multi-gateway scenario includes:
the second gateway receives a command for executing the scene action of the first scene and executes the scene action of the first scene according to the command; wherein,
the scene condition of the first scene is a multi-gateway scene condition; the multi-gateway scene condition is used for describing the condition formed by the devices under different gateways.
The multi-gateway scene implementation method provided by the embodiment of the invention enables each gateway to independently implement a multi-gateway scene by splitting the multi-gateway condition and the multi-gateway action, thereby implementing decoupling between the gateways and improving the flexibility of network deployment and the processing performance of the gateways. In addition, when part of gateways or networks break down, the whole network cannot be paralyzed, and other normal gateways and relevant scenes of equipment thereof can be correctly triggered by using the cloud server. In addition, as long as the network connection is recovered by the network and the gateway with the fault, the use of the scene function can be immediately recovered without networking among the gateways.
According to an embodiment of the present invention, the performing the scene action of the first scene according to the command includes:
searching a single gateway scene action obtained by the scene action of the first scene according to a command, and executing the single gateway scene action; wherein,
the single gateway scenario action is used to describe an action to be performed by devices under the same gateway when the single gateway scenario condition is satisfied.
According to a fourth aspect of the present invention, a multi-gateway scenario implementation system includes a cloud server, a first gateway, and a second gateway; the first gateway and the second gateway are respectively in communication connection with the cloud server;
the cloud server is configured to execute the multi-gateway scenario implementation method according to the first aspect of the present invention;
the first gateway is configured to execute the multi-gateway scenario implementation method according to the second aspect of the present invention;
the second gateway is configured to execute the method for implementing a multi-gateway scenario according to the embodiment of the third aspect of the present invention.
The multi-gateway communication system provided by the embodiment of the invention enables each gateway to independently realize a multi-gateway scene by splitting the multi-gateway condition and the multi-gateway action, thereby realizing decoupling between the gateways and improving the flexibility of network distribution and the processing performance of the gateways. In addition, when part of gateways or networks break down, the whole network cannot be paralyzed, and other normal gateways and relevant scenes of equipment thereof can be correctly triggered by using the cloud server. In addition, as long as the network connection is recovered by the network and the gateway with the fault, the use of the scene function can be immediately recovered without networking among the gateways.
An electronic device according to a fifth aspect of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the multi-gateway scenario implementation method according to the first aspect of the present invention when executing the computer program; or implementing the steps of the multi-gateway scenario implementation method according to the embodiment of the second aspect of the present invention; or to perform the steps of the multi-gateway scenario implementation method according to the embodiment of the third aspect of the present invention.
A non-transitory computer-readable storage medium according to an embodiment of the sixth aspect of the present invention, having stored thereon a computer program, which when executed by a processor, implements the steps of the multi-gateway scenario implementation method according to an embodiment of the first aspect of the present invention; or implementing the steps of the multi-gateway scenario implementation method according to the embodiment of the second aspect of the present invention; or to perform the steps of the multi-gateway scenario implementation method according to the embodiment of the third aspect of the present invention.
One or more technical solutions in the embodiments of the present invention have at least one of the following technical effects: whether the multiple gateways and the conditions are met or not is judged through the equipment state information stored in the cloud server, so that the judgment logic is simplified, and the communication overhead between the cloud server and the gateways is reduced.
Furthermore, each gateway can independently realize a multi-gateway scene by splitting the multi-gateway condition and the multi-gateway action, so that decoupling between the gateways is realized, and the flexibility of network distribution and the processing performance of the gateways are improved.
Furthermore, whether multiple gateways or conditions are met can be directly judged at the gateways, so that the judgment logic is simplified, and the communication overhead between the cloud server and the gateways is reduced.
Furthermore, when part of gateways or networks break down, the whole network cannot be paralyzed, and other normal gateways and relevant scenes of equipment thereof can be correctly triggered by using the cloud server.
Further, as long as the network connection is restored, the use of the scene function can be immediately restored without performing networking between gateways.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of an example of a multi-gateway networking;
fig. 2 is a flowchart of a multi-gateway scenario implementation method according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for implementing a multi-gateway scenario according to yet another embodiment of the present invention;
fig. 4 is a flowchart of a method for implementing a multi-gateway scenario according to another embodiment of the present invention;
fig. 5 is a schematic diagram of a cloud server in the multi-gateway scenario implementation system according to the embodiment of the present invention;
fig. 6 is a schematic diagram of a first gateway in a multi-gateway scenario implementation system according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a second gateway in a multi-gateway scenario implementation system according to an embodiment of the present invention;
fig. 8 illustrates a physical structure diagram of an electronic device.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of an embodiment of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Before describing the embodiment of the present invention in detail, an application scenario of the method provided in the embodiment of the present invention is first described.
FIG. 1 is an exemplary diagram of a multi-gateway networking. In this example of multi-gateway networking, the first device 1, the second device 2 and the third device 3 are connected to a first gateway 11, the first gateway 11 is connected to a cloud server 17 through a first route 14; the fourth 4, fifth 5 and sixth 6 devices are connected to the second gateway 12, and the second gateway 12 is connected to the cloud server 17 through the second route 15; the seventh device 7, the eighth device 8 and the ninth device 9 are connected to a third gateway 13, and the third gateway 13 is connected to a cloud server 17 through a third route 16. The tenth device 10 is connected to the third router 16 in a WIFI connection, and further connected to the cloud server 17. A device shadow service 18 may be included on the cloud server 17.
In the background section it has been mentioned that a scene is divided into two parts, namely a scene condition and a scene action.
In a multi-gateway network environment, the judgment process according to the scene condition can be completed only by a single gateway or by more than two gateways, and the scene condition can be divided into a single-gateway scene condition and a multi-gateway scene condition. In the embodiment of the invention, the multi-gateway scene is realized based on the multi-gateway scene condition.
It should be noted that the multiple gateways in the multiple gateway scenario condition only refer to the number of gateways involved in the scenario condition determination, and are not related to the scenario actions in the scenario to which the multiple gateway scenario condition belongs, that is, the scenario actions in the scenario to which the multiple gateway scenario condition belongs may be actions completed by devices in one gateway or actions completed by devices in multiple gateways. In other words, in one scenario, a multi-gateway scenario condition does not necessarily correspond to a multi-gateway scenario action. The multi-gateway scene condition is used for describing a condition formed by devices under different gateways; and the multi-gateway scene action is used for describing the scene action to be executed by the equipment under different gateways when the multi-gateway scene condition is met.
Multiple gateway scenario conditions can have multiple manifestations, but the most basic multiple gateway scenario conditions have two categories: the method comprises the steps of firstly, multiple gateways and scene conditions, and secondly, multiple gateways or scene conditions.
Taking the example of fig. 1 as an example, multiple gateways and scenario conditions, multiple gateways or scenario conditions, and corresponding scenario actions are illustrated.
Multi-gateway scenario 1 (multi-gateway and scenario conditions): the first device 1 is on and the fourth device 4 is on, linking the fifth device 5 to be on, the seventh device 7 to be on, the tenth device 10 to be on.
Multiple gateway scenario 2 (multiple gateways or scenario conditions): the first device 1 is turned on or the fourth device 4 is turned on, the fifth device 5 is linked to be turned on, the seventh device 7 is turned on, and the tenth device 10 is turned on.
In the above two exemplary multi-gateway scenarios, "the first device 1 is on and the fourth device 4 is on" is a multi-gateway and scenario condition, and only when the two scenario conditions, that is, the first device 1 located under the first gateway 11 is on and the fourth device 4 located under the second gateway 12 is on, are both satisfied, the scenario action "the fifth device 5 is on, the seventh device 7 is on, and the tenth device 10 is on" is triggered. The "first device 1 is turned on or the fourth device 4 is turned on" is a multiple gateway or scene condition, and when one of the two scene conditions, that is, the first device 1 located under the first gateway 11 is turned on or the fourth device 4 located under the second gateway 12 is turned on, is satisfied, the scene action "the fifth device 5 is turned on, the seventh device 7 is turned on, and the tenth device 10 is turned on" can be triggered.
It will be understood by those skilled in the art that in the above examples, the scene actions all involve devices under multiple gateways, but in practical applications, the scene actions may also involve only devices under the same gateway.
How to implement the above logic quickly and efficiently in a multi-gateway environment is a problem to be solved by the method of the embodiment of the present invention.
Fig. 2 is a flowchart of a multi-gateway scenario implementation method provided in an embodiment of the present invention, and as shown in fig. 2, the multi-gateway scenario implementation method provided in the embodiment of the present invention is applied to a cloud server, and the method includes:
step 201, splitting the multiple gateway scene conditions in the first scene to obtain single gateway scene conditions, splitting the scene actions of the first scene to obtain single gateway scene actions, and respectively sending and storing the single gateway scene conditions and the single gateway scene actions to corresponding gateways.
When the scene conditions and the scene actions in the first scene are split, the splitting is performed by taking the gateway as a unit. Since the scenario condition (multi-gateway scenario condition) of the first scenario involves multiple gateways, it can be split into multiple single-gateway scenario conditions. The scene action of the first scene may involve a plurality of gateways or only one gateway, so that when the scene action is split, if the scene action involves a plurality of gateways, the scene action can be split into a plurality of single-gateway scene actions; if the scene action only involves one gateway, then the scene action itself is a split single gateway scene action.
Still taking the aforementioned multi-gateway scenario 1 as an example, in this multi-gateway scenario, the multi-gateway scenario condition is "the first device 1 is on and the fourth device 4 is on". The multiple gateways and the scene conditions are split to obtain two scene conditions, namely 'first device 1 on (and)' and 'fourth device 4 on (and)'. The and in the two scene conditions is to avoid losing the and condition information when the condition is split. Similarly, if two scene conditions are split from the multi-gateway or condition "first device 1 on" or fourth device 4 on ", the split scene conditions may be denoted as" first device 1 on (or) "," fourth device 4 on (or) ". The "or" in the two scene conditions is to avoid losing the "or" condition information when the condition is split. These split context conditions are each associated with only one gateway, so they are referred to as single gateway context conditions in embodiments of the invention.
The scene actions of 'linkage fifth device 5 on, seventh device 7 on and tenth device 10 on' are split to obtain three scene actions, namely 'fifth device 5 on', 'seventh device 7 on' and 'tenth device 10 on'. The three split scenario actions are each related to only one gateway (the tenth device 10 is not connected to an actual gateway, but is directly connected to the cloud server, but the cloud server may be regarded as a special virtual gateway), so that they are called single gateway scenario actions in the embodiment of the present invention.
After the multi-gateway scene conditions and the scene actions in the first scene are split, the information can be stored in the cloud server. The results of the aforementioned split multi-gateway scenario 1 are described, for example, in table 1 below. The blank in the table indicates that there is no corresponding single gateway scenario condition or single gateway scenario action.
TABLE 1
Figure BDA0002336470280000121
And storing the single gateway scene conditions and the single gateway scene actions obtained by splitting into the corresponding gateways. For example, the single gateway scenario condition "first device 1 on (and)" is associated with first gateway 11, and this information may be sent to first gateway 11 and saved by first gateway 11; the single gateway scenario condition "fourth device 4 on (and)" and the single gateway scenario action "fifth device 5 on" are both related to the second gateway 12, so both information can be sent to the second gateway 12 and saved by the second gateway 12; the single gateway scenario action "seventh device 7 on" is related to the third gateway 13, and this information may be sent to the third gateway 13 and saved by the third gateway 13; the single gateway scenario action "tenth device 10 on" is not connected to a specific gateway, so this information is directly saved by the cloud server.
It should be noted that in the example listed above, only one device under one gateway is involved in both single gateway scenario conditions and single gateway scenario actions. In actual practice, however, a single gateway scenario condition and a single gateway scenario action may involve multiple devices under the same gateway. For example, in the example shown in fig. 1, if in a multi-gateway scenario, the scenario actions include "fifth device 5 on, sixth device 6 on, seventh device 7 on, eighth device 8 on", when splitting into single-gateway scenario actions, the scenario actions may be split into "fifth device 5 on, sixth device 6 on" and "seventh device 7 on, eighth device 8 on". Since the fifth device 5 and the sixth device 6 belong to the second gateway 12 and the seventh device 7 and the eighth device 8 belong to the third gateway 13, when the split scenario acts, the actions belonging to the same gateway are attributed to the same single-gateway scenario act.
Step 202, receiving a message that the single gateway scene condition is triggered, and determining to send a command for executing a scene action to a gateway related to a first scene according to the triggered single gateway scene condition, so that the gateway executes the scene action of a second scene.
As mentioned above, the multi-gateway scenario condition is classified into a multi-gateway scenario condition, or a scenario condition. Setting a first single gateway scene condition is split from a multi-gateway and a scene condition, and setting a second single gateway scene condition is split from the multi-gateway or the scene condition. The cloud server receives the message triggered by the first single-gateway scene condition and then processes the message, which is different from the message triggered by the second single-gateway scene condition. The following are described separately.
The cloud server receives the message that the first single-gateway scene condition is triggered, and proves that the state of the equipment corresponding to the first single-gateway scene condition in the gateway corresponding to the first single-gateway scene condition at the moment is changed. The method comprises the steps that before a cloud server receives a message that a first single-gateway scene condition is triggered, a gateway triggering the first single-gateway scene condition sends state change information of equipment related to the first single-gateway scene condition to the cloud server, after receiving the state change information of the equipment, the cloud server updates the state of the corresponding equipment in the equipment state information stored in the cloud server, and then returns the message that the equipment state is updated successfully to the gateway. If the first single gateway scene condition relates to the state updating of the multiple devices and the state of the device is not updated so that the first single gateway scene condition cannot be triggered, only the updated state of the device with the state updating is sent to the cloud server and stored, and subsequent operations are not executed any more. After receiving the message that the first single-gateway scene condition is triggered, the cloud server queries whether other first single-gateway scene conditions corresponding to the first single-gateway scene condition are triggered according to the ID of the scene corresponding to the first single-gateway scene condition, and determines whether the current state of the relevant equipment meets the triggering condition of other single-gateway scene conditions if equipment state information stored in the cloud server is queried. If all first single gateway scenario conditions in a scenario have been triggered (i.e., multiple gateway scenario conditions in a scenario have been triggered), then a command to perform a scenario action for the scenario may be sent to all gateways associated with the scenario. Because only the single gateway scene action related to the gateway is stored in the gateway, after the corresponding command is received, the corresponding single gateway scene action is executed. And if the gateway does not have corresponding single gateway scene action, no operation is executed.
In the embodiment of the present invention, the operations of updating the device state information, querying whether other first single-gateway scenario conditions are triggered according to the message that the first single-gateway scenario condition is triggered, and sending the instruction for executing the scenario action in the multi-gateway scenario to all gateways related to the multi-gateway scenario, which are completed by the cloud server, may be implemented by a device shadow service in the cloud server. In other embodiments of the present invention, the service may also be implemented by other services of the cloud server.
For example, for a multi-gateway scenario 1, when the first device 1 in fig. 1 is turned on and a trigger condition is met, the first gateway 11 reports information that the state of the first device 1 changes to the cloud server; the cloud server updates the state information of the first device 1 stored in the cloud server, and then replies a message of successful update to the first gateway 11. The first gateway 11 then reports that the conditions associated with the first device 1 in the multi-gateway scenario 1 have been met. The cloud server queries whether the state of the fourth device 4 stored in the cloud server can meet the condition related to the fourth device 4 in the multi-gateway scene 1 according to the ID of the multi-gateway scene 1. If it can also be satisfied, it proves that the conditions of the multi-gateway scenario 1 have all been satisfied. At this time, the cloud server sends instructions of actions in the multi-gateway scenario 1 to the gateways related to the multi-gateway scenario 1. After receiving the instruction, the second gateway 12 checks whether the second gateway itself stores the information of the action related to the multi-gateway scenario 1, and finds that the action information of the "fifth device 5 on" is stored, so as to execute the action of the "fifth device 5 on"; similarly, after receiving the instruction, the third gateway 13 checks whether it stores the information of the action related to the multi-gateway scenario 1, and finds that the action information of "the seventh device 7 is on", and thus executes the action of "the seventh device 7 is on"; for the tenth device 10, the cloud server checks whether the cloud server itself stores the information of the action related to the multi-gateway scenario 1, finds that the action information of "the tenth device 10 is on", and executes the action of "the tenth device 10 is on".
The cloud server receives the message that the second single-gateway scenario condition is triggered, and proves that the state of the device corresponding to the second single-gateway scenario condition changes in the gateway corresponding to the second single-gateway scenario condition (the second single-gateway scenario condition may also relate to multiple devices, but as long as the state of one device changes in a manner that the state of the one device meets the condition, the second single-gateway scenario condition is triggered). Since the second single-gateway scenario condition is split from the multiple-gateway or scenario conditions, the second single-gateway scenario condition, once triggered, proves that the condition of the multiple-gateway scenario from which the second single-gateway scenario condition originates has been satisfied, and a corresponding action may be performed. After the second single-gateway scenario condition is triggered, the gateway corresponding to the second single-gateway scenario condition may execute a corresponding single-gateway scenario action according to the information of the single-gateway scenario action corresponding to the second single-gateway scenario condition, which is stored by the gateway (if the device in the gateway has the corresponding single-gateway scenario action). In addition, a message that the second single-gateway scene condition is triggered is sent to the cloud server; and after receiving the message that the second single-gateway scene condition is triggered, the cloud server sends an instruction for executing scene actions in the multi-gateway scene to all gateways related to the multi-gateway scene corresponding to the second single-gateway scene condition. Because only single gateway scene actions related to the gateway are stored in each gateway, the corresponding single gateway scene actions are executed after the corresponding instructions are received. And if the gateway does not have corresponding single gateway scene action, no operation is executed.
In the embodiment of the present invention, the operations such as the cloud server sending the instruction for executing the action in the multi-gateway scenario to all gateways related to the multi-gateway scenario corresponding to the second single-gateway scenario condition may be implemented by a device shadow service in the cloud server. In other embodiments of the present invention, the service may also be implemented by other services of the cloud server.
For example, for the multi-gateway scenario 2, the fourth device 4 in fig. 1 is turned on, and the trigger condition of the multi-gateway scenario 2 is reached; directly triggering the fifth device 5 under the second gateway 12 to turn on. And reporting the condition that the condition of the multi-gateway scene 2 is met to a cloud server, and sending an action instruction in the multi-gateway scene 2 to each gateway related to the multi-gateway scene 2 by the cloud server. After receiving the instruction, the first gateway 11 checks whether the information of the action related to the multi-gateway scenario 2 is stored, and finds that no action is stored, so no action is executed; after receiving the instruction, the third gateway 13 checks whether the third gateway itself stores the information of the action related to the multi-gateway scenario 2, and finds that the action information of the "seventh device 7 on" is stored, so as to execute the action of the "seventh device 7 on"; for the tenth device 10, the cloud server checks whether the cloud server itself stores the information of the action related to the multi-gateway scenario 2, finds that the action information of "the tenth device 10 is on", and executes the action of "the tenth device 10 is on".
The multi-gateway scene implementation method provided by the embodiment of the invention judges whether the multi-gateway and the condition are met or not through the equipment state information stored in the cloud server, simplifies the judgment logic and reduces the communication overhead between the cloud server and the gateway; by splitting the multi-gateway conditions and the multi-gateway actions, each gateway can independently realize a multi-gateway scene, decoupling between the gateways is realized, and flexibility of network distribution and processing performance of the gateways are improved.
Based on any of the above embodiments, fig. 3 is a flowchart of a method for implementing a multi-gateway scenario according to still another embodiment of the present invention, and as shown in fig. 3, the method for implementing a multi-gateway scenario according to still another embodiment of the present invention is applied to a gateway side, and the method includes:
step 301, receiving and saving a single gateway scene condition obtained by splitting the scene condition of the first scene and a single gateway scene action obtained by splitting the scene action of the first scene.
In the embodiment of the invention, the scene condition of the first scene is a multi-gateway scene condition.
In the previous embodiment of the present invention, how the cloud server splits the multiple-gateway scenario condition to obtain the single-gateway scenario condition, and how the scenario splitting action to obtain the single-gateway scenario action have been described in detail, and are not repeated here.
In the embodiment of the invention, after receiving the single gateway scene condition and the single gateway scene action, the gateway uniformly stores the single gateway scene condition and the single gateway scene action from the same scene. For example, the single gateway scenario conditions and single gateway scenario actions stored by the first gateway 11 are described in table 2. Since in both scenario 1 and scenario 2, the first gateway 11 has no corresponding single gateway scenario action, the item of the single gateway scenario action may be blank, indicating that there is no single gateway scenario action that needs to be executed in these two scenarios.
TABLE 2
Multi-gateway scenario IDSingle gateway scenario conditionSingle gateway scenario actions
Multiple gateway scenario 1First device 1 open (and)
Multiple gateway scenario 2First device 1 on (or)
Step 302, the single gateway scenario condition is triggered, and a message that the single gateway scenario condition is triggered is sent to the cloud server.
As mentioned above, the multi-gateway scenario condition is classified into a multi-gateway scenario condition, or a scenario condition. Setting a first single gateway scenario condition is split from a multi-gateway and condition, and a second single gateway scenario condition is split from a multi-gateway or condition. After the first single-gateway scenario condition is triggered, the operation executed by the gateway is different from the operation executed by the gateway after the second single-gateway scenario condition is triggered. The following are described separately.
The state of equipment corresponding to the first single gateway scene condition in the gateway is changed, and the gateway sends the state change information of the equipment related to the first single gateway scene condition to the cloud server; after the cloud server returns a message that the state information of the devices stored by the cloud server is successfully updated, it is determined that the state change of the devices related to the first single-gateway scene condition meets the trigger condition of the first single-gateway scene condition, and the gateway sends a message that the first single-gateway scene condition is triggered to the cloud server again (since the first single-gateway scene condition may involve the state updating of multiple devices, it is assumed here that the states of the related devices are all updated so that the first single-gateway scene condition is triggered.
The state of the device in the gateway corresponding to the second single gateway scenario condition changes (the second single gateway scenario condition may involve multiple devices, but if the state of one device changes in accordance with the condition, the second single gateway scenario condition is triggered). Since the second single-gateway scenario condition is split from the multi-gateway or scenario condition, the second single-gateway scenario condition, once triggered, proves that the scenario condition of the scenario from which the second single-gateway scenario condition originates has been satisfied, and a corresponding action may be performed. And the gateway executes corresponding scene actions according to the scene action information which is stored by the gateway and corresponds to the second single-gateway scene condition, and sends a message that the second single-gateway scene condition is triggered to the cloud server.
The multi-gateway scene implementation method provided by the embodiment of the invention can directly judge whether the multi-gateway or the condition is met or not at the gateway, thereby simplifying the judgment logic and reducing the communication overhead between the cloud server and the gateway; by splitting the multi-gateway conditions and the multi-gateway actions, each gateway can independently realize a multi-gateway scene, decoupling between the gateways is realized, and flexibility of network distribution and processing performance of the gateways are improved. In addition, when part of gateways or networks break down, the whole network cannot be paralyzed, and other normal gateways and relevant scenes of equipment thereof can be correctly triggered by using the cloud server. In addition, as long as the network connection is recovered by the network and the gateway with the fault, the use of the scene function can be immediately recovered without networking among the gateways.
Based on any of the above embodiments, fig. 4 is a flowchart of a method for implementing a multi-gateway scenario according to another embodiment of the present invention, and as shown in fig. 4, the method for implementing a multi-gateway scenario according to another embodiment of the present invention is applied to a gateway side, and the method includes:
step 401, receiving a command for executing a scene action in a first scene, and executing the scene action according to the command.
The server sends a command for executing the scene action in the first scene to the gateways related to the first scene, because only single gateway scene action related to the gateway is stored in each gateway. Thus, after receiving the corresponding command, the single gateway scene action resulting from the scene action of the first scene is searched and executed. And if the gateway does not have corresponding single gateway scene action, no operation is executed.
The multi-gateway scene implementation method provided by the embodiment of the invention enables each gateway to independently implement a multi-gateway scene by splitting the multi-gateway condition and the multi-gateway action, thereby implementing decoupling between the gateways and improving the flexibility of network deployment and the processing performance of the gateways. In addition, when part of gateways or networks break down, the whole network cannot be paralyzed, and other normal gateways and relevant scenes of equipment thereof can be correctly triggered by using the cloud server. In addition, as long as the network connection is recovered by the network and the gateway with the fault, the use of the scene function can be immediately recovered without networking among the gateways.
Based on any of the above embodiments, the multi-gateway scenario implementation system provided by the embodiment of the present invention includes a cloud server, a first gateway, and a second gateway, where the first gateway and the second gateway are respectively in communication connection with the cloud server. .
Fig. 5 is a schematic diagram of a cloud server in a multi-gateway scenario implementation system provided in an embodiment of the present invention, and as shown in fig. 5, the cloud server includes:
a sceneinformation splitting module 501, configured to split a scene condition of a first scene to obtain a single gateway scene condition, and split a scene action of the first scene to obtain a single gateway scene action; respectively sending and storing the single gateway scene conditions and the single gateway scene actions to corresponding gateways; wherein the scene condition of the first scene is a multi-gateway scene condition;
the scene action executioncommand forwarding module 502 receives the message that the single gateway scene condition is triggered, and determines to send a command for executing the scene action of the first scene to the gateway related to the first scene according to the triggered single gateway scene condition, so that the gateway executes the scene action of the first scene.
The cloud server provided by the embodiment of the invention judges whether the multiple gateways and the scene condition are met or not through the equipment state information stored by the cloud server, so that the judgment logic is simplified, and the communication overhead between the cloud server and the gateways is reduced; by splitting the multi-gateway scene conditions and the scene actions, each gateway can independently realize the multi-gateway scene, decoupling between the gateways is realized, and the flexibility of network distribution and the processing performance of the gateways are improved.
Based on any of the above embodiments, fig. 6 is a schematic diagram of a first gateway in a multi-gateway scenario implementation system provided in the embodiment of the present invention, and as shown in fig. 6, the first gateway includes:
the split sceneinformation receiving module 601 is configured to receive and store a single gateway scene condition obtained by splitting a scene condition of a first scene and a single gateway scene action obtained by splitting a scene action of the first scene;
themessage sending module 602 is configured to send a message that the single-gateway scenario condition is triggered to the cloud server when the single-gateway scenario condition is triggered.
The first gateway provided by the embodiment of the invention can directly judge whether multiple gateways or conditions are met, so that the judgment logic is simplified, and the communication overhead between the cloud server and the gateways is reduced.
Based on any of the above embodiments, fig. 7 is a schematic diagram of a second gateway in a multi-gateway scenario implementation system provided in the embodiment of the present invention, and as shown in fig. 7, the second gateway includes:
the scene action information receiving and executing module 701 is configured to receive a command for executing a scene action of a first scene, and execute the scene action of the first scene according to the command.
The second gateway provided by the embodiment of the invention executes the disassembled single gateway scene action according to the command of executing the scene action, so that the execution efficiency of the scene action is improved, and the communication overhead between the second gateway and the cloud server is also saved.
Fig. 8 illustrates a physical structure diagram of an electronic device, and as shown in fig. 8, the electronic device may include: a processor (processor)810, acommunication Interface 820, amemory 830 and acommunication bus 840, wherein theprocessor 810, thecommunication Interface 820 and thememory 830 communicate with each other via thecommunication bus 840. Theprocessor 810 may call logic instructions in thememory 830 to perform the following method: splitting a multi-gateway condition and a multi-gateway action in a multi-gateway scene to respectively obtain a single-gateway scene condition and a single-gateway scene action; sending and storing the single gateway scene condition and the single gateway scene action to a gateway related to the multi-gateway scene; and receiving a message that the single gateway scene condition is triggered, and determining to send a command for executing an action to a gateway related to the multi-gateway scene according to the triggered single gateway scene condition. Or performing the following method: receiving and storing single gateway scene conditions obtained by splitting multiple gateway conditions in a multiple gateway scene and single gateway scene actions obtained by splitting multiple gateway actions in the multiple gateway scene; the single gateway scene condition is triggered, and a message that the single gateway scene condition is triggered is sent to a cloud server; and receiving a command for executing the action in the multi-gateway scene, and executing the action according to the command.
In addition, the logic instructions in thememory 830 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Further, embodiments of the present invention disclose a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, which when executed by a computer, the computer is capable of performing the methods provided by the above-mentioned method embodiments, for example, comprising: splitting a multi-gateway condition and a multi-gateway action in a multi-gateway scene to respectively obtain a single-gateway scene condition and a single-gateway scene action; sending and storing the single gateway scene condition and the single gateway scene action to a gateway related to the multi-gateway scene; and receiving a message that the single gateway scene condition is triggered, and determining to send a command for executing an action to a gateway related to the multi-gateway scene according to the triggered single gateway scene condition. Or for example, include: receiving and storing single gateway scene conditions obtained by splitting multiple gateway conditions in a multiple gateway scene and single gateway scene actions obtained by splitting multiple gateway actions in the multiple gateway scene; the single gateway scene condition is triggered, and a message that the single gateway scene condition is triggered is sent to a cloud server; and receiving a command for executing the action in the multi-gateway scene, and executing the action according to the command.
In another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented by a processor to perform the method provided by the foregoing embodiments, for example, including: splitting a multi-gateway condition and a multi-gateway action in a multi-gateway scene to respectively obtain a single-gateway scene condition and a single-gateway scene action; sending and storing the single gateway scene condition and the single gateway scene action to a gateway related to the multi-gateway scene; and receiving a message that the single gateway scene condition is triggered, and determining to send a command for executing an action to a gateway related to the multi-gateway scene according to the triggered single gateway scene condition. Or for example, include: receiving and storing single gateway scene conditions obtained by splitting multiple gateway conditions in a multiple gateway scene and single gateway scene actions obtained by splitting multiple gateway actions in the multiple gateway scene; the single gateway scene condition is triggered, and a message that the single gateway scene condition is triggered is sent to a cloud server; and receiving a command for executing the action in the multi-gateway scene, and executing the action according to the command.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
The above embodiments are merely illustrative of the present invention and are not to be construed as limiting the invention. Although the present invention has been described in detail with reference to the embodiments, it should be understood by those skilled in the art that various combinations, modifications or equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention, and the technical solution of the present invention is covered by the claims of the present invention.

Claims (13)

1. A method for implementing a multi-gateway scenario is characterized by comprising the following steps:
splitting scene conditions of a first scene to obtain single gateway scene conditions, and splitting scene actions of the first scene to obtain single gateway scene actions; respectively sending and storing the single gateway scene conditions and the single gateway scene actions to corresponding gateways; wherein the scene condition of the first scene is a multi-gateway scene condition;
receiving a message that a single gateway scene condition is triggered, and determining to send a command for executing a scene action of a first scene to a gateway related to the first scene according to the triggered single gateway scene condition so that the gateway executes the scene action of the first scene; wherein,
the multi-gateway scene condition is used for describing a condition formed by devices under different gateways; the single gateway scene condition is used for describing conditions formed by devices under the same gateway; the single gateway scenario action is used to describe an action to be performed by devices under the same gateway when the single gateway scenario condition is satisfied.
2. The method of claim 1, wherein the multi-gateway scenario condition comprises a multi-gateway and scenario condition; correspondingly, the receiving the message that the single gateway scenario condition is triggered includes:
receiving state change information of a device related to a first single-gateway scenario condition; wherein the first single-gateway scenario condition is a single-gateway scenario condition obtained by splitting the multiple gateways and a condition;
updating corresponding equipment state information stored in the cloud server according to the state change information, and returning a message that the equipment state information is updated successfully;
receiving a message that a first single gateway scenario condition is triggered, wherein the message that the first single gateway scenario condition is triggered is sent after a state change of a device related to the first single gateway scenario condition meets a trigger condition of the first single gateway scenario condition.
3. The method of claim 1, wherein the multi-gateway scenario condition comprises a multi-gateway or scenario condition; correspondingly, the receiving the message that the single gateway scenario condition is triggered includes:
receiving a message that a second single-gateway scenario condition is triggered; wherein the second single-gateway scenario condition is a single-gateway scenario condition resulting from the multi-gateway or conditional split; the message that the second single gateway scenario condition is triggered is a message that is sent after the state change of the device related to the second single gateway scenario condition satisfies the triggering condition of the second single gateway scenario condition.
4. The method of claim 2, wherein determining to send a command to a gateway associated with the first scenario to perform a scenario action for the first scenario according to the triggered single gateway scenario condition comprises:
inquiring whether other first single gateway scene conditions in the first scene are triggered or not according to the triggered first single gateway scene conditions;
when all first single-gateway scenario conditions in the first scenario are triggered, sending a command to execute a scenario action of the first scenario to all gateways associated with the first scenario.
5. The method of claim 3, wherein the determining to send a command to a gateway associated with the first scenario to perform a scenario action for the first scenario according to the triggered single gateway scenario condition comprises:
sending a command to perform a scene action for the first scene to all gateways associated with the first scene according to the triggered second single-gateway scene condition.
6. A method for implementing a multi-gateway scenario is characterized by comprising the following steps:
the first gateway receives and stores a single gateway scene condition obtained by splitting the scene condition of the first scene and a single gateway scene action obtained by splitting the scene action of the first scene;
the single gateway scene condition is triggered, and a message that the single gateway scene condition is triggered is sent to a cloud server; wherein,
the scene condition of the first scene is a multi-gateway scene condition; the multi-gateway scene condition is used for describing a condition formed by devices under different gateways; the single gateway scene condition is used for describing conditions formed by devices under the same gateway; the single gateway scenario action is used to describe an action to be performed by devices under the same gateway when the single gateway scenario condition is satisfied.
7. The method of claim 6, wherein the multi-gateway scenario condition comprises a multi-gateway and scenario condition; correspondingly, the step of sending the message that the single gateway scenario condition is triggered to the cloud server when the single gateway scenario condition is triggered comprises:
the method comprises the steps that the state of equipment related to a first single gateway scene condition changes, and state change information of the equipment is sent to a cloud server; wherein the first single-gateway scenario condition is a single-gateway scenario condition obtained by splitting the multiple gateways and a condition;
after receiving a message that the device state information of the cloud server is successfully updated, determining that the state change of the device related to the first single-gateway scene condition meets the trigger condition of the first single-gateway scene condition, and sending the message that the first single-gateway scene condition is triggered to the cloud server.
8. The method of claim 6, wherein the multi-gateway scenario condition comprises a multi-gateway or scenario condition; correspondingly, the step of sending the message that the single gateway scenario condition is triggered to the cloud server when the single gateway scenario condition is triggered comprises:
determining that a change in state of a device associated with a second single-gateway scenario condition satisfies a trigger condition of the second single-gateway scenario condition; wherein the second single-gateway scenario condition is a single-gateway scenario condition resulting from the multi-gateway or conditional split;
executing scene actions within the range of the first gateway according to the information of the single gateway scene actions corresponding to the second single gateway scene conditions;
and sending a message that the second single gateway scene condition is triggered.
9. A method for implementing a multi-gateway scenario is characterized by comprising the following steps:
the second gateway receives a command for executing the scene action of the first scene and executes the scene action of the first scene according to the command; wherein,
the scene condition of the first scene is a multi-gateway scene condition; the multi-gateway scene condition is used for describing the condition formed by the devices under different gateways.
10. The method of claim 9, wherein the performing the scenario action of the first scenario according to the command comprises:
searching a single gateway scene action obtained by the scene action of the first scene according to a command, and executing the single gateway scene action; wherein,
the single gateway scenario action is used to describe an action to be performed by devices under the same gateway when the single gateway scenario condition is satisfied.
11. A multi-gateway scene implementation system is characterized by comprising a cloud server, a first gateway and a second gateway; the first gateway and the second gateway are respectively in communication connection with the cloud server;
the cloud server, configured to execute the multi-gateway scenario implementation method according to any one of claims 1 to 5;
the first gateway, configured to perform the multi-gateway scenario implementation method according to any one of claims 6 to 8;
the second gateway, configured to perform the multi-gateway scenario implementation method according to claim 9 or 10.
12. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the multi-gateway scenario implementation method according to any one of claims 1 to 5 when executing the program; or implementing the multi-gateway scenario implementation method of any of claims 6 to 8; or implementing the steps of the multi-gateway scenario implementation method of claim 9 or 10.
13. A non-transitory computer readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the multi-gateway scenario implementation method according to any of claims 1 to 5; or implementing the multi-gateway scenario implementation method of any of claims 6 to 8; or implementing the steps of the multi-gateway scenario implementation method of claim 9 or 10.
CN201911358036.6A2019-12-252019-12-25Multi-gateway scene implementation method and system, electronic device and storage mediumActiveCN113037530B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201911358036.6ACN113037530B (en)2019-12-252019-12-25Multi-gateway scene implementation method and system, electronic device and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201911358036.6ACN113037530B (en)2019-12-252019-12-25Multi-gateway scene implementation method and system, electronic device and storage medium

Publications (2)

Publication NumberPublication Date
CN113037530Atrue CN113037530A (en)2021-06-25
CN113037530B CN113037530B (en)2022-04-19

Family

ID=76458303

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201911358036.6AActiveCN113037530B (en)2019-12-252019-12-25Multi-gateway scene implementation method and system, electronic device and storage medium

Country Status (1)

CountryLink
CN (1)CN113037530B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113777939A (en)*2021-09-012021-12-10珠海太川云社区技术股份有限公司Intelligent household scene setting method and system
CN113904924A (en)*2021-10-192022-01-07吴枚兰Efficient operation and maintenance method for local area network system of Internet of things
CN115016312A (en)*2022-07-202022-09-06深圳市华曦达科技股份有限公司Cloud scene optimization method and device for intelligent home multi-manufacturer equipment
CN115296946A (en)*2022-06-282022-11-04青岛海尔科技有限公司Control request decomposition method and device, storage medium and electronic device
CN115473752A (en)*2022-07-212022-12-13青岛海尔科技有限公司 Method and device for sending control command, storage medium and electronic device

Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105007173A (en)*2015-05-292015-10-28青岛海尔智能家电科技有限公司Method and apparatus for managing home appliances on the condition of multiple gateways
US20160087834A1 (en)*2013-04-172016-03-24Gree Electric Appliances, Inc. Of ZhuhaiSmart Home System and Control Method Therefor
US20160330200A1 (en)*2006-12-292016-11-10Kip Prod P1 LpMulti-services application gateway and system employing the same
CN107121971A (en)*2017-05-222017-09-01广东芬尼克兹节能设备有限公司A kind of intelligent home furnishing control method and system based on scene mode
CN108366121A (en)*2018-02-132018-08-03广州云湾信息技术有限公司The group network system and apparatus control method of the more intelligent gateways of Internet of Things
CN108737581A (en)*2017-04-142018-11-02中兴通讯股份有限公司A kind of gateway device, management method, apparatus and system
CN109617731A (en)*2018-12-212019-04-12青岛海信智慧家居系统股份有限公司Adaptive gateway role configuration method and device under a kind of multi-gateway environment
CN110113232A (en)*2019-03-272019-08-09深圳绿米联创科技有限公司Apparatus control method, device, system, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20160330200A1 (en)*2006-12-292016-11-10Kip Prod P1 LpMulti-services application gateway and system employing the same
US20160087834A1 (en)*2013-04-172016-03-24Gree Electric Appliances, Inc. Of ZhuhaiSmart Home System and Control Method Therefor
CN105007173A (en)*2015-05-292015-10-28青岛海尔智能家电科技有限公司Method and apparatus for managing home appliances on the condition of multiple gateways
CN108737581A (en)*2017-04-142018-11-02中兴通讯股份有限公司A kind of gateway device, management method, apparatus and system
CN107121971A (en)*2017-05-222017-09-01广东芬尼克兹节能设备有限公司A kind of intelligent home furnishing control method and system based on scene mode
CN108366121A (en)*2018-02-132018-08-03广州云湾信息技术有限公司The group network system and apparatus control method of the more intelligent gateways of Internet of Things
CN109617731A (en)*2018-12-212019-04-12青岛海信智慧家居系统股份有限公司Adaptive gateway role configuration method and device under a kind of multi-gateway environment
CN110113232A (en)*2019-03-272019-08-09深圳绿米联创科技有限公司Apparatus control method, device, system, electronic equipment and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113777939A (en)*2021-09-012021-12-10珠海太川云社区技术股份有限公司Intelligent household scene setting method and system
CN113904924A (en)*2021-10-192022-01-07吴枚兰Efficient operation and maintenance method for local area network system of Internet of things
CN115296946A (en)*2022-06-282022-11-04青岛海尔科技有限公司Control request decomposition method and device, storage medium and electronic device
CN115296946B (en)*2022-06-282024-03-22青岛海尔科技有限公司Control request decomposition method and device, storage medium and electronic device
CN115016312A (en)*2022-07-202022-09-06深圳市华曦达科技股份有限公司Cloud scene optimization method and device for intelligent home multi-manufacturer equipment
CN115473752A (en)*2022-07-212022-12-13青岛海尔科技有限公司 Method and device for sending control command, storage medium and electronic device

Also Published As

Publication numberPublication date
CN113037530B (en)2022-04-19

Similar Documents

PublicationPublication DateTitle
CN113037530B (en)Multi-gateway scene implementation method and system, electronic device and storage medium
CN113037798B (en)Multi-gateway communication method, system, electronic device and storage medium
US10419531B2 (en)Method for setting gateway device identity, and management gateway device
EP4383664B1 (en)Communication method and apparatus
US10819659B2 (en)Direct replying actions in SDN switches
CN105392181A (en) Networking method, device and system for intelligent equipment
US12041688B2 (en)Screen projection method and system
CN112218342A (en)Method, device and system for realizing core network sub-slice disaster tolerance
CN113839862A (en) Method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors
CN109195199B (en)AP management method and device
CN113260072A (en)Mesh networking traffic scheduling method, gateway equipment and storage medium
CN116708508A (en)Network target range communication method and device, electronic equipment and storage medium
CN113453252B (en)Communication method and device
CN108418863B (en)Management method of controller cluster, SDN controller and storage medium
CN110417876A (en) Session method, node server and master control device in distributed system
CN114422437A (en) Method and device for forwarding heterogeneous packets
CN110868348B (en)Multi-gateway communication method, device and system and electronic equipment
US20180241640A1 (en)Data processing method and device
CN112433480A (en)Intelligent household system and control method and device thereof
CN116938712A (en)Device upgrade method, device upgrade apparatus, and computer-readable storage medium
WO2023284366A1 (en)Dbng-cp backup method and apparatus
CN116847432A (en)Subnet fusion method and device, electronic equipment and storage medium
CN108023801B (en)Resource scheduling method and system for heterogeneous network
CN114945206A (en)Access method of PROFINET protocol in 5G-LAN
CN113568669A (en)Service board card starting method based on orthogonal architecture, service board card and orthogonal equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp