CN110113232B - Device control method, device, system, electronic device and storage medium - Google Patents

Device control method, device, system, electronic device and storage medium Download PDF

Info

Publication number
CN110113232B
CN110113232B CN201910239777.6A CN201910239777A CN110113232B CN 110113232 B CN110113232 B CN 110113232B CN 201910239777 A CN201910239777 A CN 201910239777A CN 110113232 B CN110113232 B CN 110113232B
Authority
CN
China
Prior art keywords
gateway
environment information
information
trigger event
execution
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.)
Active
Application number
CN201910239777.6A
Other languages
Chinese (zh)
Other versions
CN110113232A (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.)
Shenzhen Lutuo Technology Co Ltd
Original Assignee
Shenzhen Lutuo Technology 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 Shenzhen Lutuo Technology Co Ltd filed Critical Shenzhen Lutuo Technology Co Ltd
Priority to CN201910239777.6A priority Critical patent/CN110113232B/en
Publication of CN110113232A publication Critical patent/CN110113232A/en
Application granted granted Critical
Publication of CN110113232B publication Critical patent/CN110113232B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Selective Calling Equipment (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses a device control method, a device control system, an electronic device and a storage medium. The method comprises the following steps: the gateway receives the environment information sent by the message distributor; and if the environment information comprises a preset trigger event and an execution condition corresponding to the trigger event exists, the gateway controls an execution device to execute a corresponding action according to the environment information. By forwarding the environmental information through the message distributor, each gateway has an automatic logic judgment function, so that paralysis of the whole intelligent home system caused by the fault of one gateway is avoided, and the robustness of the intelligent home system is improved.

Description

Device control method, device, system, electronic device and storage medium
Technical Field
The present application relates to the field of smart home technologies, and in particular, to a device control method, apparatus, system, electronic device, and storage medium.
Background
The intelligent home is a living environment of people, a home is taken as a platform, facilities related to home life are integrated by utilizing a comprehensive wiring technology, a network communication technology, an intelligent home-system design scheme safety precaution technology, an automatic control technology and an audio and video technology, an efficient management system of home facilities and family schedule practices is constructed, home safety, convenience, comfortableness and artistry are improved, and an environment-friendly and energy-saving living environment is realized.
Along with deep use of the intelligent home system by people, more and more devices are connected into the intelligent home system, a single gateway cannot meet networking requirements of all the devices, and therefore the multiple gateways are required to perform cooperative work, and the devices can be connected to different gateways while the multiple gateways perform cooperative work, so that certain difficulty is caused in automatic execution.
Disclosure of Invention
The application provides a device control method, device, system, electronic device and storage medium to solve the problems.
In a first aspect, an embodiment of the present application provides an apparatus control method, where the method includes: the gateway receives the environment information sent by the message distributor; and if the environment information comprises a preset trigger event and an execution condition corresponding to the trigger event exists, the gateway controls the execution equipment to execute a corresponding action according to the environment information.
In a second aspect, an embodiment of the present application provides an apparatus control method, where the method includes: the method comprises the steps that a message distributor receives environment information sent by a first gateway, and the environment information is collected by information collection equipment connected to the first gateway; the message distributor distributes the environment information to a second gateway which has subscribed to the environment information.
In a third aspect, an embodiment of the present application provides an apparatus control method, including: the method comprises the steps that a message distributor receives environment information sent by a first gateway, and the environment information is collected by information collection equipment connected to the first gateway; the message distributor distributes the environment information to a second gateway which has subscribed the environment information; the second gateway receives the environment information sent by any message distributor; and if the environment information comprises a preset trigger event and an execution condition corresponding to the trigger event exists, the second gateway controls the execution equipment to execute a corresponding action according to the environment information.
In a fourth aspect, an embodiment of the present application provides an apparatus control device, including: the receiving module is used for receiving the environment information sent by the message distributor by the gateway; and the execution module is used for controlling the execution equipment to execute corresponding actions according to the environment information if the environment information comprises a preset trigger event and the execution condition corresponding to the trigger event exists.
In a fifth aspect, an embodiment of the present application provides an apparatus control device, including: the receiving module is used for receiving the environmental information sent by the first gateway by the message distributor, and the environmental information is collected by the information collecting equipment connected to the first gateway; and the distribution module is used for distributing the environment information to a second gateway which has subscribed the environment information by the message distributor.
In a sixth aspect, an embodiment of the present application provides an apparatus control system, where the apparatus control system includes multiple gateways and one or more message distributors, where the multiple gateways include a first gateway and a second gateway, where the one or more message distributors are configured to receive environment information sent by the first gateway, and the environment information is collected by an information collection device connected to the first gateway; one or more message distributors are used for sending the environment information to a second gateway which is subscribed to the environment information; the second gateway is used for receiving the environment information sent by any message distributor; and the second gateway is also used for controlling the execution equipment to execute corresponding actions according to the environment information if the environment information comprises a preset trigger event and an execution condition corresponding to the trigger event exists.
In a seventh aspect, an embodiment of the present application provides an electronic device, which includes one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method as applied to an electronic device, as described above.
In an eighth aspect, the present application provides a computer-readable storage medium having a program code stored therein, wherein the program code performs the above method when running.
According to the equipment control method, the device, the system, the electronic equipment and the storage medium, the gateway receives the environment information sent by the message distributor; and if the environment information comprises a preset trigger event and an execution condition corresponding to the trigger event exists, the gateway controls an execution device to execute a corresponding action according to the environment information. By forwarding the environmental information through the message distributor, each gateway has an automatic logic judgment function, so that paralysis of the whole intelligent home system caused by the fault of one gateway is avoided, and the robustness of the intelligent home system is improved.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 illustrates a system architecture diagram suitable for use with embodiments of the present application.
Fig. 2 shows a flowchart of a device control method according to an embodiment of the present application.
Fig. 3 shows a flowchart of a device control method according to another embodiment of the present application.
Fig. 4 shows a flowchart of a device control method according to another embodiment of the present application.
Fig. 5 is a flowchart illustrating an apparatus control method according to still another embodiment of the present application.
Fig. 6 shows an interaction diagram of a device control method according to an embodiment of the present application.
Fig. 7 is a functional block diagram of an apparatus control device according to an embodiment of the present application.
Fig. 8 is a functional block diagram of an apparatus control device according to another embodiment of the present application.
Fig. 9 shows a block diagram of an electronic device proposed in an embodiment of the present application for executing a device control method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Along with the development of the technology, the smart home gradually enters the life of people, in the smart home, along with the use of a user, the devices accessed to the smart home system are gradually increased, if only one gateway is relied on, the networking requirement of the smart home devices cannot be met, and at the moment, a plurality of gateways are needed to work cooperatively.
When a plurality of gateways work cooperatively, various devices are distributed in different gateways, which causes difficulty in automation, and therefore, a method of collectively planning a plurality of sub-gateways under a main gateway through one main gateway is generally adopted. When the device connected with any gateway has data to report, the corresponding sub-gateway reports the data to the main gateway, the main gateway performs calculation processing, and sends the corresponding control instruction to the corresponding sub-gateway, thereby realizing the automatic function. However, in this way, only the main gateway can process the automation logic, and if the main gateway fails to work normally, the automation cannot be implemented, which results in paralysis of the entire smart home system.
Therefore, the inventor proposes a device control method in the embodiment of the present application, where a gateway receives environment information sent by message distribution; and if the environment information comprises a preset trigger event and an execution condition corresponding to the trigger event exists, the gateway controls an execution device to execute a corresponding action according to the environment information. By forwarding the environmental information through the message distributor, each gateway has an automatic logic judgment function, so that paralysis of the whole intelligent home system caused by the fault of one gateway is avoided, and the robustness of the intelligent home system is improved.
The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a diagram illustrating a system architecture that may be used in an equipment control system according to an embodiment of the present disclosure. The system architecture comprises a generic gateway 11, a gateway 12 carrying a message distributor, and a sub-device 13. The message distributor in the gateway 12 carrying the message distributor is connected to all gateways in the system, and the common gateway 11 is connected to all message distributors in the system, that is, the gateway can perform data transmission with any message distributor in the system. The sub-device 13 may be connected to the common gateway 11, or may be connected to the gateway 12 carrying the message distributor, specifically, the connection between the sub-device 13 and the gateway may be set by the user, and after the sub-device 13 is connected to the gateway, the common gateway 11 and the gateway 12 carrying the message distributor may control the sub-device 13 connected thereto.
Optionally, the system may further comprise a server 10 for receiving messages from the gateway and for sending messages to the gateway. The server 10 may be a cloud server, or may be a local server. In the server 10, there may be one message distributor connected to all the gateways.
In this system, a plurality of gateways may be added. When each gateway is appointed to a device control system by a user, the server informs all gateways in the system of the existing gateway addresses carrying the message distributors. The message distributor in each gateway is connected with the gateway of the message distributor and other gateways in the same system to directly carry out data communication.
Optionally, in the system, the gateway carrying the message distributor may be integrated with the message distributor carried by the gateway, for example, the message distributor is a piece of code loaded in the gateway for performing a message distribution function, or the message distributor is a device provided in the gateway for performing a message distribution function.
Optionally, in the system, the gateway carrying the message distributor and the message distributor carried by the gateway may be two independent structures respectively, and the gateway is in data connection with the message distributor.
In the system, each sub-device may include an information collecting device for collecting environmental information to know a change of an environment according to the collected environmental information, for example, the information collecting device may be a proximity sensor, a smoke sensor, or the like; each sub-device may further include an execution device for executing the execution instruction sent by the gateway, such as an air conditioner, a television, a household appliance such as a switch of a lamp, and the like.
Referring to fig. 2, an embodiment of the present application provides an apparatus control method, which may be applied to any gateway in an apparatus control system. The embodiment of the present application is described with one of the gateways, and the method may include:
in step S110, the gateway receives the environment information sent by the message distributor.
The gateway is connected to all message distributors in the system, and the gateway can receive the environment information sent by the message distributors, in this embodiment of the present application. The environment information is the required information subscribed to all the message distributors by the gateway, and when any message distributor receives the environment information, the environment information is sent to the gateway subscribed to the environment information.
The environment information subscribed by the gateway is information of other sub-devices which are not connected with the gateway, and the gateway can judge whether to execute corresponding automation according to the received environment information.
Step S120, if the environment information includes a preset trigger event and an execution condition corresponding to the trigger event exists, the gateway controls an execution device to execute a corresponding action according to the environment information.
After receiving the environment information sent by the message distributor, the gateway may determine whether the environment information includes a preset trigger condition, if the environment information includes a preset trigger event, it indicates that there is a corresponding automated trigger, the gateway may continue to search whether there is an execution condition corresponding to the trigger event, and if the execution condition corresponding to the trigger event is found, the gateway controls the execution device to execute an action corresponding to the trigger event according to the environment information.
According to the equipment control method, the gateway receives the environmental information sent by the message distributor; and if the environment information comprises a preset trigger event and an execution condition corresponding to the trigger event exists, the gateway controls an execution device to execute a corresponding action according to the environment information. By forwarding the environmental information through the message distributor, each gateway has an automatic logic judgment function, so that paralysis of the whole intelligent home system caused by the fault of one gateway is avoided, and the robustness of the intelligent home system is improved.
Referring to fig. 3, another embodiment of the present application provides a device control method, which focuses on describing a process of controlling an execution device to execute a corresponding action according to environment information on the basis of the previous embodiment, and the method may include:
step S210, the gateway receives automation configuration information, where the automation configuration information includes a trigger event, an execution condition, and an execution action corresponding to each other.
Before the intelligent home is performed with corresponding automation, the gateway may receive automation configuration information, which is set by a user according to the user's own requirements. In one embodiment, the user may send the set automatic configuration information to the gateway through an electronic device such as a mobile terminal through a local area network where the user is located or a short-distance communication method such as bluetooth or ZigBee. In another embodiment, after the user sets the automation configuration information on the electronic device such as the mobile terminal, the automation configuration information may be sent to the server through the network, and then the server sends the automation configuration information to the gateway.
The automatic configuration information includes an automatic trigger event, an execution condition corresponding to the trigger event, and an execution action corresponding to the trigger event. When receiving the automation configuration information, the gateway may store the automation configuration information in a JSON, XML, database, or other format in a local file or directly write the automation configuration information into the chip, where the specific automation configuration information may refer to table 1.
TABLE 1
Numbering Triggering event Execution conditions Performing an action
1 S1: one passing by S2: illumination value lower than 100lx D1 turning on the light
2 S2: change of illumination value S2: illumination value higher than 1000lx D2 closing curtain
3 S2: change of illumination value S2: illumination value higher than 500lx D1 turning off the lamp
Wherein, S1, S2 are sensors connected to the gateway, D1, D2 are household appliances connected to the gateway. The serial number is the serial number of the automation pieces in the automation configuration information, and the triggering event is the event for triggering the automation pieces; the execution condition is a condition which needs to be met when the automation is executed; the action is executed as an action that the automation needs to execute. In an automation, when a trigger event occurs and an execution condition corresponding to the trigger event is satisfied, a corresponding execution action is executed. For example, if the sensor S1 detects that someone passes by, the automation trigger event with the number 1 occurs, and at this time, if the illumination value detected by the sensor S2 is lower than 100lx, the control execution device D1 turns on the light.
In step S220, the gateway determines environment information respectively related to the trigger event and the execution condition in the automation configuration information.
In an embodiment, after receiving the automation configuration information, the gateway may obtain a trigger event, an execution condition, and an execution action in each automation, so as to determine environment information related to the trigger event and environment information related to the execution condition in each automation, so that the gateway may obtain a device related to the trigger event, a device related to the execution condition, and a device related to the execution action.
In another embodiment, the gateway obtains the device related to the trigger event, the device related to the execution condition, and the device related to the execution action, respectively. The gateway can judge whether an execution device related to an execution action is connected with the gateway; if the gateway is connected with the equipment relevant to the execution action, the gateway indicates that the gateway can directly control the execution equipment to execute the corresponding action, and then the gateway judges whether the gateway is connected with the equipment relevant to the execution condition and the equipment relevant to the trigger event; if the device related to the trigger event is not connected with the gateway, the gateway is indicated that the gateway cannot directly acquire the device information related to the trigger event, and the device information related to the trigger event needs to be acquired from other gateways, and then the gateway determines that the environment information is the environment information related to the trigger event; if the device related to the execution condition is not connected with the gateway, it indicates that the gateway cannot directly acquire the device information related to the execution condition, and needs to acquire the device information related to the execution condition from another gateway, and then the gateway determines that the environment information is the environment information related to the execution condition; if the information acquisition device related to the execution condition and the information acquisition device related to the trigger event are not connected with the gateway, it indicates that the gateway cannot directly acquire the device information related to the trigger event and the device information related to the execution condition, and needs to acquire the device information related to the trigger event and the device information related to the execution condition from another gateway, and then the gateway determines that the environment information is the environment information related to the execution condition and the environment information related to the trigger event.
For example, a device D1 is connected to a certain gateway, the gateway receives that the trigger event in automation is that someone passes through S1, the execution condition is that the illumination value of S2 is lower than 100lx, and the execution action is that the light is turned on by D1. When receiving the automation, the gateway may acquire that the device related to the execution action in the automation is D1, the device related to the trigger event is S1, and the device related to the execution condition is S2. The gateway may determine whether device D1 associated with the execution of the action is connected and device D1 is connected in the gateway, indicating that the gateway needs to obtain the device information associated with the trigger event and the device information associated with the execution condition. Therefore, the gateway may continuously determine whether the device related to the trigger event is connected and the device related to the execution condition is connected, and neither the device related to the trigger event S1 nor the device related to the execution condition S2 is connected to the gateway, and then the gateway may determine that the environment information is the environment information related to S1 and the environment information related to S2.
Step S230, the gateway subscribes the determined environment information to the message distributor, so that when the message distributor receives that the environment information collected by the information collecting device is the environment information subscribed by the gateway, the environment information is sent to the gateway.
And after determining the environmental information respectively related to the trigger event and the execution condition in the automation configuration information, the gateway subscribes the determined environmental information to all the message distributors.
Specifically, if the environment information determined by the gateway is the environment information related to the trigger event and the environment information related to the execution condition, the gateway subscribes the environment information related to the trigger event and the environment information related to the execution condition to all the message distributors; if the environment information determined by the gateway is the environment information related to the trigger event, the gateway subscribes the environment information related to the trigger event to all the message distributors; if the environment information determined by the gateway is the environment information related to the execution condition, the gateway subscribes the environment information related to the execution condition to all the message distributors.
In step S240, the gateway receives the environment information sent by the message distributor.
After the gateway subscribes the determined environment information to all the message distributors, when the message distributors receive the environment information subscribed by the gateway, the environment information can be used as the environment information and sent to the gateways subscribed with the environment information, and the gateways can receive the environment information sent by the message distributors.
Step S250, determining whether the environment information includes the preset trigger event.
The gateway receives the environment information sent by the message distributor. The environment information may include a preset trigger event, and may include an execution condition corresponding to the trigger event, and the gateway may determine whether the environment information includes the preset trigger event. And if the environment information comprises information related to the execution condition, the gateway updates the information stored corresponding to the execution condition into the information related to the execution condition. For example, if the execution condition corresponding to the trigger event is that the illumination value of S2 is less than 100lx, the illumination value of S2 stored in the gateway is 200lx, the environment information received by the gateway is that the illumination value of S2 is 110lx, and the gateway can determine that the environment information is information related to the execution condition, update the illumination value of S2 stored in the gateway as 200lx to the environment information, that is, update the illumination value of S2 as 110 lx.
Specifically, the gateway determines whether the environment information includes a preset trigger event, which may be determining whether the environment information includes information related to the trigger event. For example, if the triggering event is that a person passes through S1, the information related to the triggering event may be that a person passes through S1 or that no person passes through S1.
Step S260, if yes, determining whether an execution condition corresponding to the trigger event exists.
If the gateway determines that the environment information includes the information related to the trigger event, it may continuously determine whether the information related to the trigger event satisfies the trigger event, and if the information related to the trigger event satisfies the trigger event, the gateway may continuously determine whether an execution condition related to the trigger event exists.
For example, the preset trigger event is S1 passing by, wherein the sensor S1 outputs 1 when passing by and 0 when not passing by. If the environment information received by the gateway is S1 is 0, the gateway judges that the environment information comprises information related to the trigger event, namely information of a sensor S1; the gateway continues to determine whether the information related to the trigger event satisfies the trigger condition, i.e., determines S1 is 0 and whether the trigger event S1 is 1. Since the trigger event is S1 is 1 and the received information related to the trigger event is S1 is 0, the received environment information does not satisfy the trigger event. If the received environment information is S1 is 1, it may be determined that the received environment information satisfies the trigger event.
Step S270, if the execution condition corresponding to the trigger event exists, the gateway controls the execution equipment to execute the corresponding action according to the environment information.
And if the gateway judges that the execution condition corresponding to the trigger event exists, the gateway controls the corresponding execution equipment to execute the corresponding action according to the trigger event and the execution condition corresponding to the trigger event.
In one embodiment, the execution condition of the gateway corresponding to the trigger event may be original device information stored in the gateway. For example, if the state information of S2 stored in the gateway is S2, the illumination value is 60lx, then when the gateway receives that S1 has a person passing through, it may know that S1 has a person passing through as a trigger event of automation 1, and the gateway may also find that the locally stored state information of S2 is S2, the illumination value is 60lx, and it satisfies the corresponding execution condition that S1 has a person passing through, and the gateway may control the device D1 in the execution action in automation 1 to turn on the light.
In another embodiment, the execution condition of the trigger event corresponding to the presence of the gateway may be context information received through the message distributor. For example, there is no information about S2 within the gateway. Then, when the gateway receives that someone passes through S1, it can know that the passage of someone is the trigger event of automation 1 in S1, and the gateway finds that the execution condition corresponding to the passage of someone in S1 is that the illumination of S2 is lower than 100 lx. Meanwhile, the gateway also acquires that the other piece of environment information sent by the message distributor is S2 illumination value of 60lx, and the gateway judges that the piece of environment information does not include the trigger event according to the automation configuration information, updates the information of S2 to the illumination value of S2 of 60lx, meets the corresponding execution condition that someone passes through S1, and can control the device D1 in the execution action in the automation 1 to turn on the light.
The equipment control method provided by the application receives the environmental information sent by the message distributor; judging whether the environment information comprises a preset trigger event or not; if yes, judging whether an execution condition corresponding to the trigger event exists; and if the execution condition corresponding to the trigger event exists, the gateway controls equipment to execute the corresponding action according to the environment information. Each gateway has the processing function of automatic logic, so that the breakdown of the whole intelligent home system caused by the fault of one gateway can be avoided, and the robustness of the intelligent home is improved.
Referring to fig. 4, another embodiment of the present application provides a device control method, which can be applied to any message distributor in a device control system. The embodiment of the present application is described with one of the message distributors, and the method may include:
step S310, the message distributor receives environment information sent by a first gateway, and the environment information is collected by an information collection device connected to the first gateway.
The message distributor may receive the context information sent by all gateways. For convenience of description, the present application takes as an example a processing procedure in which a message distributor receives environment information sent by one of gateways, and the gateway is defined as a first gateway. The message distributor receives environment information sent by a first gateway, and the environment information is collected by information collection equipment connected to the first gateway. The first gateway may be a gateway to which an information collecting device that collects subscribed environment information is connected. When the state of the information acquisition device acquiring the subscribed environment information changes, the information acquisition device may send the state change information to a connected first gateway, and the first gateway receives the state information sent by the information acquisition device and then sends the state information, i.e., the environment information, to all the message distributors. For example, the environment information is that a person passes through S1, when the sensor S1 connected to the first gateway detects that a person passes through S1, the person passes through S3526 is sent to the first gateway, and then the first gateway sends the message that a person passes through S1 to all message distributors.
Specifically, before the message distributor receives the environment information sent by the first gateway, the message distributor may receive subscription information sent by the gateway. For convenience of description, in the embodiment of the present application, a gateway that sends subscription information is defined as a second gateway, that is, the second gateway is a gateway that needs to subscribe to environment information. After the second gateway determines the environment information that needs to be subscribed, all message distributors may receive a subscription message sent by the second gateway, where the subscription message includes the environment information that the second gateway needs to acquire. After receiving the subscription message sent by the second gateway, the message distributor may send a feedback message to the second gateway to respond to the subscription message.
For example, if the environment information that the second gateway needs to acquire is the status information of the sensor S1, a subscription message, which may be "i need to care about the sensor S1", is sent to the message distributor. After receiving the subscription message, the message distributor sends a corresponding feedback message to the second gateway, where the feedback message may be "successful", indicating that the gateway successfully subscribes to the message of the sensor S1. When the message dispatcher receives the message from sensor S1, it forwards the message to the second gateway that has subscribed to the sensor S1 message.
Step S320, the message distributor distributes the environment information to a second gateway which has subscribed to the environment information.
And after receiving the environment information, the message distributor sends the environment information to a second gateway which has subscribed the environment information. And the second gateway is a gateway subscribing the environment information.
The device control method comprises the steps that environmental information sent by a first gateway is received through a message distributor, and the environmental information is collected by information collection equipment connected to the first gateway; the message distributor distributes the received environment information to a second gateway which has subscribed to the environment information. The environmental information is forwarded through the message distributors, so that the environmental information can be issued through the plurality of message distributors, and when a single message distributor fails, the normal work of a gateway irrelevant to the message distributor is not influenced, and the robustness of the whole intelligent home system is improved.
Referring to fig. 5, a further embodiment of the present application provides a device control method, where on the basis of the foregoing embodiment, this embodiment focuses on a process of interaction between a gateway and a message distributor, and the method may include:
step S410, the message distributor receives environment information sent by a first gateway, and the environment information is collected by an information collection device connected to the first gateway.
Step S420, the message distributor distributes the environment information to a second gateway which has subscribed to the environment information.
Step S430, the second gateway receives the environment information sent by any message distributor.
Step S440, if the environment information includes a preset trigger event and an execution condition corresponding to the trigger event exists, the second gateway controls an execution device to execute a corresponding action according to the environment information.
Steps S410 to S440 refer to the corresponding steps of the previous embodiments, and are not described herein again. Meanwhile, also referring to fig. 6, an interaction process among the first gateway, the message distributor and the second gateway is shown.
This interaction process will be described below in a specific example.
For example, in the system architecture shown in fig. 1, in which the device connected to gateway a is device S1, the devices connected to gateway B are devices S2 and D2, and the device connected to gateway C is device D1, there are message distributors for gateway a and gateway B, and there is no message distributor in gateway C. All of the gateways a, B, and C receive the same automation configuration information, for example, all of the gateways may receive automation configuration information of automation 1, and the specific information of automation 1 may refer to table 2.
TABLE 2
Numbering Triggering event Execution conditions Performing an action
1 S1: one passing by S2: illumination value lower than 100lx D1 turning on the light
When receiving automation of the automation configuration information number 1, the gateway a, the gateway B, and the gateway C may have a difference in processing. Upon receiving the piece of automation, gateway a acquires that device D1 associated with the execution of the action is not connected to gateway a, and then gateway a does not subscribe to any messages for automation 1. Upon receiving the piece of automation, gateway B acquires that device D1 associated with the execution of the action is not connected to gateway B, and then gateway B does not subscribe to any message for automation 1. When the gateway C receives the piece of automation, it acquires that the device D1 related to the execution action is connected to the gateway C, but neither the device S1 related to the trigger event nor the device S2 related to the execution condition is connected to the gateway C, and then the gateway C subscribes to messages of S1 and S2 to all message distributors.
In one embodiment, the gateway C may send a single subscription message to all message distributors, i.e. the gateway C sends a single subscription message "i need to care about the sensors S1 and S2" to all message distributors. When the message distributor receives the subscription message, it sends a feedback message to the gateway C, where the feedback message may be "successful" to indicate that the gateway C has successfully subscribed to the messages of the sensors S1 and S2.
In another embodiment, the gateway C may send two consecutive subscription messages to all message distributors, namely the first subscription message sent by the gateway C to all message distributors, which may be "i need to care about the message of the sensor S1", and the gateway C continues to send a second subscription message to all message distributors, which may be "i need to care about the message of the sensor S2".
The message distributor transmits the message of S1 or S2 to the gateway C when receiving the message of the sensor S1 or the sensor S2, and the gateway C determines whether to perform an action according to the received environment information. For example, when the sensor S1 detects that a person passes through, the sensor S1 sends the information that the person passes through to the gateway a connected to the sensor S1, the gateway a sends the message that the person passes through the sensor S1 to all message distributors, and after receiving the message that the person passes through at S1, the message distributor distributes the message that the person passes through at S1 to the gateway C that subscribes to the message of the sensor S1, and the gateway C can receive the message of the sensor S1.
The gateway C compares the message that the person passes through S1 with the automation configuration information, and can know that the person passes through S1 as the information related to the trigger event in automation 1, which is the trigger event of automation 1. The gateway C may determine whether an execution condition that satisfies the trigger event is stored, the gateway C may query that the execution condition that a person passes through the corresponding S1 is that the illumination of S2 is lower than 100lx, if the illumination value of S2 received by the gateway C is 80lx at this time, the gateway C may determine that the execution condition is satisfied, or the gateway C does not receive a new illumination value of S2, searches for a locally stored illumination value, if the stored illumination value is 80lx, the gateway C may also determine that the execution condition is satisfied, the gateway C may send a control instruction of "turn on the light" to the execution device D1, and the D1 receives the instruction of "turn on the light" to complete the automation.
The device control method comprises the steps that environmental information sent by a first gateway is received through a message distributor, and the environmental information is collected by information collection equipment connected to the first gateway; the message distributor distributes the environment information to a second gateway which has subscribed the environment information; the second gateway receives the environment information sent by any message distributor; and if the environment information comprises a preset trigger event and an execution condition corresponding to the trigger event exists, the second gateway controls execution equipment to execute a corresponding action according to the environment information. By forwarding the environmental information through the message distributor, each gateway has an automatic logic judgment function, so that paralysis of the whole intelligent home system caused by the fault of one gateway is avoided, and the robustness of the intelligent home system is improved.
Referring to fig. 7, a device control apparatus 500 according to an embodiment of the present application is shown, where the device control apparatus 500 includes a receiving module 510 and an executing module 520. A receiving module 510, configured to receive, by the gateway, environment information sent by a message distributor; an executing module 520, configured to, if the environment information includes a preset trigger event and an executing condition corresponding to the trigger event exists, control, by the gateway, an executing device to execute a corresponding action according to the environment information.
Receiving environment information sent by a message distributor through a gateway; and if the environment information comprises a preset trigger event and an execution condition corresponding to the trigger event exists, the gateway controls an execution device to execute a corresponding action according to the environment information. By forwarding the environmental information through the message distributor, each gateway has an automatic logic judgment function, so that paralysis of the whole intelligent home system caused by the fault of one gateway is avoided, and the robustness of the intelligent home system is improved.
Further, the executing module 520 is further configured to determine whether the environment information includes the preset triggering event; if yes, judging whether an execution condition corresponding to the trigger event exists; and if the execution condition corresponding to the trigger event exists, the gateway controls the execution equipment to execute the corresponding action according to the environment information.
When the trigger event is received, the execution equipment is controlled to act under the condition that the execution condition exists, so that the action execution of the execution equipment is triggered through the trigger event.
Further, the executing module 520 is further configured to update the information stored corresponding to the executing condition as the information related to the executing condition if the environment information includes the information related to the executing condition; if the environment information comprises information related to a trigger event, judging whether the information related to the trigger event meets the trigger event, if so, judging whether the information stored corresponding to the execution condition meets the execution condition, and if so, controlling the execution equipment to execute the execution action corresponding to the trigger event.
When the information related to the execution condition is received, the information related to the execution condition is updated, so that when the trigger event is received to judge whether the execution condition is met, the judgment can be carried out according to the latest external environment condition.
Further, before the gateway controls the execution device to execute the corresponding action according to the environment information, the receiving module 510 is further configured to receive, by the gateway, the environment information acquired by the connected information acquisition device. The environment information collected by the information collection device connected with the gateway itself can be sent to the gateway, and can be used as the information related to the gateway trigger event or the information related to the execution condition.
Further, the receiving module 510 is further configured to send, by the gateway, the environment information to the message distributor. The gateway sends the received environment information to the message distributor so that the message distributor can send the environment information to other gateways that subscribe to the environment information.
Further, before the gateway receives the environment information sent by the message distributor, the receiving module 510 is further configured to receive automation configuration information by the gateway, where the automation configuration information includes a trigger event, an execution condition, and an execution action that correspond to each other; the execution module 520 is configured to determine, by the gateway, environment information in the automation configuration information, which is respectively related to a trigger event and an execution condition; and the gateway subscribes the determined environmental information to the message distributor so that the message distributor sends the environmental information to the gateway when receiving the environmental information which is acquired by the information acquisition equipment and is subscribed by the gateway. The gateway can subscribe the environment information according to the automatic configuration information, on one hand, a user can configure a trigger event and an execution condition for executing the action by the execution equipment by setting the automatic configuration information; on the other hand, the gateway may subscribe to the relevant environment information in the automation configuration information only to the message distributor, so that the gateway does not need to acquire all messages received by the message distributor from the message distributor, and the message distributor does not necessarily send the received messages to all gateways, thereby reducing data interaction and improving data processing and transmission efficiency.
Further, before the gateway determines the environment information related to the trigger event and the execution condition in the automation configuration information, the execution module 520 is further configured to determine, by the gateway, whether an execution device related to an execution action in the automation configuration information is connected to the gateway; if the execution equipment related to the execution action is connected with the gateway, judging whether the information acquisition equipment related to the execution condition and the information acquisition equipment related to the trigger event are connected with the gateway or not; and if not, executing the step of determining the environmental information related to the trigger event and the execution condition in the automation configuration information. When the gateway is connected with the execution equipment in the automatic configuration information, the gateway can trigger the control of the execution equipment according to the trigger event, so that whether the environment information needs to be subscribed or not is determined under the condition of connecting the execution equipment without subscribing the related environment information in all the automatic configuration information, the data interaction is reduced, and the data processing and transmission efficiency is improved.
Further, the executing module 520 is further configured to subscribe, by the gateway, the environment information related to the trigger event and the environment information related to the executing condition to the message distributor if neither the information collecting device related to the executing condition nor the information collecting device related to the trigger event is connected to the gateway, subscribe, by the gateway, the environment information related to the executing condition to the message distributor if the information collecting device related to the executing condition is not connected to the gateway, and subscribe, by the gateway, the environment information related to the trigger event to the message distributor if the information collecting device related to the trigger event is not connected to the gateway. For the environment information in the automation configuration information, if the gateway is connected with the corresponding information acquisition device, the environment information can be received from the information acquisition device without subscribing from the message distributor. Therefore, for the environment information in the automation configuration information, the gateway can only subscribe the information acquired by the information acquisition equipment which is not connected with the gateway from the message distributor, so that the data interaction is reduced, and the data processing and transmission efficiency is improved.
Wherein, the environment information sent by the message distributor is received; judging whether the environment information comprises a preset trigger event or not; if yes, judging whether an execution condition corresponding to the trigger event exists; and if the execution condition corresponding to the trigger event exists, the gateway controls the execution equipment to execute the corresponding action according to the environment information. Each gateway has the processing function of automatic logic, so that the breakdown of the whole intelligent home system caused by the fault of one gateway can be avoided, and the robustness of the intelligent home is improved.
The device control apparatus 500 provided in this embodiment of the present application can implement each process of implementing the device control method by the gateway in the method embodiments of fig. 2 to fig. 3, and for avoiding repetition, details are not described here again.
Referring to fig. 8, a device control apparatus 600 provided in an embodiment of the present application is shown, where the device control apparatus 600 includes a receiving module 610 and a distributing module 620.
The receiving module 610, the message distributor receives environment information sent by a first gateway, the environment information is collected by an information collecting device connected to the first gateway; a distribution module 620, wherein the message distributor distributes the environment information to a second gateway subscribed to the environment information.
Further, the distributing module 620 is further configured to receive, by the message distributor, a subscription message sent by a second gateway, where the subscription message includes environment information that the second gateway needs to acquire; and the message distributor sends a feedback message to the second gateway to respond to the subscription message.
Receiving environmental information sent by a first gateway through a message distributor, wherein the environmental information is collected by information collection equipment connected to the first gateway; the message distributor distributes the received environment information to a second gateway which has subscribed to the environment information. The environmental information is forwarded through the message distributors, so that the environmental information can be issued through the plurality of message distributors, and when a single message distributor fails, the normal work of a gateway irrelevant to the message distributor is not influenced, and the robustness of the whole intelligent home system is improved.
The device control apparatus 600 provided in this embodiment of the present application can implement each process of implementing the device control method by the gateway in the method embodiment described in fig. 4, and for avoiding repetition, details are not described here again.
An embodiment of the present application provides an electronic device, which includes a processor and a memory, where at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the device control method provided in the above method embodiment.
The memory may be used to store software programs and modules, and the processor may execute various functional applications and data processing by operating the software programs and modules stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs needed by functions and the like; the storage data area may store data created according to use of the apparatus, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory may also include a memory controller to provide the processor access to the memory.
Fig. 9 is a block diagram of a hardware structure of an electronic device according to an apparatus control method provided in an embodiment of the present application. As shown in fig. 9, the electronic device 700 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 710 (the processors 710 may include but are not limited to a Processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 730 for storing data, and one or more storage media 720 (e.g., one or more mass storage devices) for storing applications 723 or data 722. Memory 730 and storage medium 720 may be, among other things, transient storage or persistent storage. The program stored in the storage medium 720 may include one or more modules, each of which may include a series of instructions operating on an electronic device. Further, processor 710 may be configured to communicate with storage medium 720 to execute a series of instruction operations in storage medium 720 on electronic device 700. The electronic device 700 may also include one or more power supplies 760, one or more wired or wireless network interfaces 750, one or more input-output interfaces 740, and/or one or more operating systems 721, such as a Windows Server, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM, etc.
The input/output interface 740 may be used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the server 700. In one example, the input/output Interface 740 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the input/output interface 740 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
It will be understood by those skilled in the art that the structure shown in fig. 9 is merely an illustration and is not intended to limit the structure of the electronic device. For example, electronic device 700 may also include more or fewer components than shown in FIG. 9, or have a different configuration than shown in FIG. 9.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the device control method embodiment, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (14)

1. An apparatus control method, characterized in that the method comprises:
a first gateway receives automation configuration information, wherein the automation configuration information comprises trigger events, execution conditions and execution actions which correspond to each other;
the first gateway determines environment information respectively related to a trigger event and an execution condition in the automation configuration information, and sends the environment information to a plurality of message distributors;
the second gateway subscribes the determined environment information to each message distributor, so that each message distributor sends the environment information to the second gateway when receiving the environment information which is acquired by the information acquisition equipment and is subscribed by the second gateway;
the second gateway receives the environment information sent by at least one message distributor;
and if the environment information comprises a preset trigger event and an execution condition corresponding to the trigger event exists, the second gateway controls execution equipment to execute a corresponding action according to the environment information.
2. The method of claim 1, wherein if the context information includes a predetermined trigger event and an execution condition corresponding to the trigger event exists, the second gateway executes a corresponding action according to the context information, including:
the second gateway judges whether the environment information comprises the preset trigger event or not;
if yes, judging whether an execution condition corresponding to the trigger event exists;
and if the execution condition corresponding to the trigger event exists, the second gateway controls the execution equipment to execute the corresponding action according to the environment information.
3. The method of claim 2, wherein the context information includes information related to a trigger event and/or information related to an execution condition, and the second gateway determines whether the context information includes the preset trigger event; if yes, judging whether an execution condition corresponding to the trigger event exists; if the execution condition corresponding to the trigger event exists, the second gateway controls the execution equipment to execute the corresponding action according to the environment information, and the method comprises the following steps:
if the environment information comprises information related to the execution condition, the second gateway updates the information stored corresponding to the execution condition as the information related to the execution condition;
if the environment information comprises information related to a trigger event, the second gateway judges whether the information related to the trigger event meets the trigger event, if the information related to the trigger event meets the trigger event, the second gateway judges whether the information stored corresponding to the execution condition meets the execution condition, and if the information meets the execution condition, the second gateway controls the execution equipment to execute the execution action corresponding to the trigger event.
4. The method of claim 1, wherein before the second gateway controls the execution device to perform the corresponding action according to the environment information, further comprising:
and the first gateway receives the environment information acquired by the connected information acquisition equipment.
5. The method of claim 4, wherein the method further comprises:
the first gateway sends the environment information to the message distributor.
6. The method of claim 1, wherein the first gateway, prior to determining the context information in the automation configuration information related to the triggering event and the execution condition, respectively, further comprises:
the first gateway judges whether an execution device related to an execution action in the automation configuration information is connected with the first gateway;
if the execution equipment related to the execution action is connected with the first gateway, judging whether the information acquisition equipment related to the execution condition and the information acquisition equipment related to the trigger event are connected with the first gateway or not;
and if not, executing the step of determining the environmental information respectively related to the trigger event and the execution condition in the automation configuration information.
7. The method of claim 1, wherein the second gateway subscribes to the determined context information from each of the message distributors, comprising:
if the information acquisition device related to the execution condition and the information acquisition device related to the trigger event are not connected with the second gateway, the second gateway subscribes the environment information related to the trigger event and the environment information related to the execution condition to each message distributor,
if the information acquisition equipment related to the execution condition is not connected with the second gateway, the second gateway subscribes the environment information related to the execution condition to the message distributor,
and if the information acquisition equipment related to the trigger event is not connected with the gateway, the second gateway subscribes the environmental information related to the trigger event to the message distributor.
8. A device control method applied to any one of a plurality of message distributors included in a device control system, the method comprising:
the method comprises the steps that a message distributor receives environment information sent by a first gateway, and the environment information is collected by information collection equipment connected to the first gateway;
and the message distributor distributes the environment information to a second gateway which has subscribed the environment information, so that when the second gateway determines that the environment information comprises a preset trigger event and an execution condition corresponding to the trigger event exists, the second gateway controls an execution device to execute a corresponding action according to the environment information.
9. The method of claim 8, wherein the message distributor, prior to receiving the context information sent by the first gateway, comprises:
the message distributor receives a subscription message sent by a second gateway, wherein the subscription message comprises environmental information required to be acquired by the second gateway;
and the message distributor sends a feedback message to the second gateway to respond to the subscription message.
10. An apparatus control method, characterized in that the method comprises:
a first gateway receives automation configuration information, wherein the automation configuration information comprises trigger events, execution conditions and execution actions which correspond to each other;
the first gateway determines environment information respectively related to a trigger event and an execution condition in the automation configuration information, and sends the environment information to a plurality of message distributors;
the method comprises the steps that a message distributor receives environment information sent by a first gateway, and the environment information is collected by information collection equipment connected to the first gateway;
the message distributor distributes the environment information to a second gateway which has subscribed the environment information;
the second gateway receives the environment information sent by any message distributor;
and if the environment information comprises a preset trigger event and an execution condition corresponding to the trigger event exists, the second gateway controls execution equipment to execute a corresponding action according to the environment information.
11. An apparatus control device, characterized in that the device comprises:
the receiving module is used for receiving environmental information sent by a first gateway by a message distributor, and the environmental information is collected by information collection equipment connected to the first gateway;
and the distribution module is used for distributing the environment information to a second gateway which has subscribed to the environment information by the message distributor, so that when the second gateway determines that the environment information comprises a preset trigger event and an execution condition corresponding to the trigger event exists, the second gateway controls an execution device to execute a corresponding action according to the environment information.
12. An appliance control system comprising a plurality of gateways, a plurality of message distributors, the plurality of gateways comprising a first gateway and a second gateway, wherein,
the first gateway is used for receiving automation configuration information, wherein the automation configuration information comprises trigger events, execution conditions and execution actions which correspond to each other;
the first gateway is further configured to determine environment information respectively related to a trigger event and an execution condition in the automation configuration information, and send the environment information to the plurality of message distributors;
the message distributors are used for receiving environment information sent by a first gateway, and the environment information is collected by information collection equipment connected to the first gateway;
the message distributors are used for sending the environment information to a second gateway which is subscribed to the environment information;
the second gateway is used for receiving the environment information sent by any message distributor;
and the second gateway is also used for controlling the execution equipment to execute corresponding actions according to the environment information if the environment information comprises a preset trigger event and the execution condition corresponding to the trigger event exists.
13. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-7 or the method of any of claims 8-9.
14. A computer-readable storage medium, in which a program code is stored, which program code can be called by a processor to execute the method according to any one of claims 1 to 7 or the method according to any one of claims 8 to 9.
CN201910239777.6A 2019-03-27 2019-03-27 Device control method, device, system, electronic device and storage medium Active CN110113232B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910239777.6A CN110113232B (en) 2019-03-27 2019-03-27 Device control method, device, system, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910239777.6A CN110113232B (en) 2019-03-27 2019-03-27 Device control method, device, system, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN110113232A CN110113232A (en) 2019-08-09
CN110113232B true CN110113232B (en) 2021-07-02

Family

ID=67484675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910239777.6A Active CN110113232B (en) 2019-03-27 2019-03-27 Device control method, device, system, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN110113232B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647044A (en) * 2019-09-09 2020-01-03 珠海格力电器股份有限公司 Household appliance control method and device, electronic device and readable storage medium
CN113037798B (en) * 2019-12-25 2022-04-12 美的集团股份有限公司 Multi-gateway communication method, system, electronic device and storage medium
CN113037530B (en) * 2019-12-25 2022-04-19 美的集团股份有限公司 Multi-gateway scene implementation method and system, electronic device and storage medium
CN114584415B (en) * 2022-01-24 2023-11-28 杭州博联智能科技股份有限公司 Method, system, device and medium for realizing scene distribution of full house intelligence

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567845A (en) * 2003-06-26 2005-01-19 华为技术有限公司 A network equipment driving system and method for implementing message management
CN108540361A (en) * 2017-02-15 2018-09-14 福特全球技术公司 Central gateway for vehicle networked enhancing

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7672267B2 (en) * 2003-02-07 2010-03-02 Sybase 365, Inc. Intermediary network system and method for facilitating message exchange between wireless networks
US8824487B1 (en) * 2010-04-29 2014-09-02 Centurylink Intellectual Property Llc Multi-access gateway for direct to residence communication services
CN103532755B (en) * 2013-10-12 2016-07-06 北京世界星辉科技有限责任公司 The processing method of distributed asynchronous event and system
WO2015093070A1 (en) * 2013-12-16 2015-06-25 三菱電機株式会社 Gateway, management center, and remote access system
CN104749962B (en) * 2015-03-09 2017-06-27 联想(北京)有限公司 The method and control device of a kind of control smart home based on linkage rule
CN106292302A (en) * 2015-05-22 2017-01-04 阿里巴巴集团控股有限公司 The control method of intelligent domestic system and device
CN105933191A (en) * 2016-06-22 2016-09-07 成都博盛信息技术有限公司 Control method for smart home
CN106094754B (en) * 2016-07-12 2019-09-20 腾讯科技(深圳)有限公司 Apparatus control system, method and device
CN106325250A (en) * 2016-09-12 2017-01-11 珠海格力电器股份有限公司 Electric device coordinated control method and electric device coordinated control system based on information detection
CN106527162A (en) * 2016-11-30 2017-03-22 海尔优家智能科技(北京)有限公司 Linkage control method and device based on AllJoyn
CN108366121A (en) * 2018-02-13 2018-08-03 广州云湾信息技术有限公司 The group network system and apparatus control method of the more intelligent gateways of Internet of Things
CN108462742B (en) * 2018-03-02 2021-11-09 厦门狄耐克智能科技股份有限公司 Gateway coordinator for smart home and conflict coordination method in gateway coordinator
CN108693777A (en) * 2018-05-02 2018-10-23 深圳市彬讯科技有限公司 Intelligent domestic system and its control method
CN108900392A (en) * 2018-06-22 2018-11-27 四川斐讯信息技术有限公司 A kind of method and system of smart home multiple gateway access
CN109491263B (en) * 2018-12-13 2022-06-03 深圳绿米联创科技有限公司 Intelligent household equipment control method, device and system and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567845A (en) * 2003-06-26 2005-01-19 华为技术有限公司 A network equipment driving system and method for implementing message management
CN108540361A (en) * 2017-02-15 2018-09-14 福特全球技术公司 Central gateway for vehicle networked enhancing

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Smart home at a finger tip: OSGi-based MyHome;Hsuan-Yu Huang;《2009 IEEE International Conference on Systems, Man and Cybernetics》;20091204;全文 *
智能家居控制方法的研究与改进;柳云龙;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》;20180215;全文 *

Also Published As

Publication number Publication date
CN110113232A (en) 2019-08-09

Similar Documents

Publication Publication Date Title
CN110113232B (en) Device control method, device, system, electronic device and storage medium
CN108491222B (en) Gateway equipment upgrading method and device, gateway equipment and storage medium
JP6087449B2 (en) Gateway, management center, remote access system, and remote access method
CN111143061A (en) Multi-device linkage control method and device and storage medium
WO2020206693A1 (en) Smart home scheduling method, apparatus and system, server and storage medium
EP3185482A1 (en) Intelligent home controller and communication method thereof
CN102801816B (en) Cloud air conditioning system based on cloud computation
JP2002534841A (en) Home control device with distributed network device
CN109753034B (en) Control method, control device, electronic equipment and storage medium
CN101741583A (en) Method, device and system for realizing data updating of intelligent household electrical appliance
US20180176745A1 (en) M2m group and notification resource creation and information exchange methods therefor, and storage medium
CN112738740A (en) Message pushing sending method and device, storage medium and electronic device
CN114697150B (en) Command issuing method and device, storage medium and electronic device
CN112004245A (en) Robot control method, robot control device, storage medium, and electronic device
CN105338008A (en) Equipment scheduling method, device and system for internet of things
CN104333497B (en) A kind of intelligent home network automatic device discovery method and network system
EP4092529A1 (en) Service scheduling method and apparatus, electronic device, and storage medium
CN110837228A (en) Intelligent household appliance single and circulating cloud timing control system and control method thereof
CN107920348A (en) Device network status information
CN105225453B (en) Multi-control-center-based household appliance linkage method and device and control center
CN116107975A (en) Control method and device of equipment, storage medium and electronic device
CN115457955A (en) Distributed awakening decision method and device, storage medium and electronic device
CN112152885B (en) Equipment control method and device, household appliance and remote control equipment
CN114884975A (en) Service message processing method and device, storage medium and electronic device
CN114938365A (en) Method and device for updating functional module, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant