CN110113232A - Apparatus control method, device, system, electronic equipment and storage medium - Google Patents
Apparatus control method, device, system, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110113232A CN110113232A CN201910239777.6A CN201910239777A CN110113232A CN 110113232 A CN110113232 A CN 110113232A CN 201910239777 A CN201910239777 A CN 201910239777A CN 110113232 A CN110113232 A CN 110113232A
- Authority
- CN
- China
- Prior art keywords
- gateway
- environmental information
- trigger event
- information
- relevant
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 82
- 238000003860 storage Methods 0.000 title claims abstract description 30
- 230000007613 environmental effect Effects 0.000 claims abstract description 255
- 230000005540 biological transmission Effects 0.000 claims description 12
- 230000006870 function Effects 0.000 abstract description 11
- 206010033799 Paralysis Diseases 0.000 abstract description 9
- 238000005286 illumination Methods 0.000 description 23
- 230000008569 process Effects 0.000 description 14
- 238000012545 processing Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000005315 distribution function Methods 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000006855 networking Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000004378 air conditioning Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 239000000779 smoke Substances 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B15/00—Systems controlled by a computer
- G05B15/02—Systems controlled by a computer electric
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/418—Total 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]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2816—Controlling appliance services of a home automation network by calling their functionalities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0876—Aspects of the degree of configuration automation
- H04L41/0886—Fully automatic configuration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/26—Pc applications
- G05B2219/2642—Domotique, domestic, home control, automation, smart house
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total 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
This application discloses a kind of apparatus control method, device, system, electronic equipment and storage mediums.The described method includes: gateway receives the environmental information that message distributor is sent;If the environmental information includes preset trigger event and the execution condition that there is the corresponding trigger event, the gateway is controlled according to the environmental information executes the corresponding movement of equipment execution.Forwarding by message distributor to environmental information, each gateway have the arbitration functions of automation logic, to avoid improving the robustness of smart home system because the failure of a gateway leads to the paralysis of entire smart home system.
Description
Technical field
This application involves Smart Home technical fields, more particularly, to a kind of apparatus control method, device, system, electricity
Sub- equipment and storage medium.
Background technique
Smart home is a kind of living environment of people, using house as platform, utilizes comprehensive wiring technology, network communication skill
Art, Smart Home-system design scheme security precautions technology, automatic control technology, audio and video technology are related by home life
Facility is integrated, constructs the management system of efficient housing facilities Yu family's schedule practice, promotes house security, convenience, relaxes
Adaptive, artistry, and realize the inhabitation bad border of environmental protection and energy saving.
As depth of the people to smart home system uses, the equipment for accessing smart home system can be more and more, single
As soon as gateway is unable to satisfy the networking requirements of all devices, this needs multiple gateways to cooperate, then multiple gateway associations
While with work, equipment may be coupled to different gateways, then causes certain difficulty to the execution of automation.
Summary of the invention
Present applicant proposes a kind of apparatus control method, device, system, electronic equipment and storage mediums, above-mentioned to improve
Problem.
In a first aspect, the embodiment of the present application provides a kind of apparatus control method, this method comprises: gateway receives message point
Send out the environmental information that device is sent;If the environmental information includes preset trigger event and there is holding for the corresponding trigger event
Row condition, gateway is controlled according to the environmental information executes the corresponding movement of equipment execution.
Second aspect, the embodiment of the present application provide a kind of apparatus control method, this method comprises: message distributor receives
The environmental information that first gateway is sent, the environmental information are acquired by the information collecting device for being connected to first gateway;Disappear
The environmental information is distributed to the second gateway for having subscribed to the environmental information by breath distributor.
The third aspect, the embodiment of the present application provide a kind of apparatus control method, this method comprises: message distributor receives
The environmental information that first gateway is sent, the environmental information are acquired by the information collecting device for being connected to first gateway;Disappear
The environmental information is distributed to the second gateway for having subscribed to the environmental information by breath distributor;Second gateway receives any message
The environmental information that distributor is sent;If the environmental information includes preset trigger event and there is the corresponding trigger event
Execution condition, the second gateway is controlled according to the environmental information executes the corresponding movement of equipment execution.
Fourth aspect, the embodiment of the present application provide a kind of plant control unit, which includes: receiving module, are used for
Gateway receives the environmental information that message distributor is sent;Execution module, if including preset triggering thing for the environmental information
Part and the execution condition that there is the corresponding trigger event, gateway execute corresponding according to environmental information control execution equipment
Movement.
5th aspect, the embodiment of the present application provide a kind of plant control unit, which includes: receiving module, is used for
The message distributor receives the environmental information that the first gateway is sent, and the environmental information is by being connected to the letter of first gateway
Breath acquisition equipment acquisition;The environmental information is distributed to for message distributor and has subscribed to the environmental information by distribution module
The second gateway.
6th aspect, the embodiment of the present application provide a kind of apparatus control system, and the apparatus control system includes multiple
Gateway, one or more message distributors, the multiple gateway include the first gateway and the second gateway, wherein one or more
A message distributor is used to receive the environmental information of the first gateway transmission, and the environmental information is by being connected to first gateway
Information collecting device acquisition;One or more message distributors have subscribed to the environment letter for the environmental information to be sent to
Second gateway of breath;Second gateway is used to receive the environmental information that any message distributor is sent;If the second gateway is also used to institute
Stating environmental information includes preset trigger event and the execution condition that there is the corresponding trigger event, according to the environmental information
Control executes equipment and executes corresponding movement.
7th aspect, the embodiment of the present application provide a kind of electronic equipment, which includes one or more processing
Device;Memory;One or more application program, wherein one or more of application programs are stored in the memory simultaneously
It is configured as being executed by one or more of processors, one or more of programs are configured to carry out to be applied to as above-mentioned
The method of electronic equipment.
Eighth aspect, the application implementation column provide a kind of computer readable storage medium, the computer-readable storage medium
Program code is stored in matter, wherein execute above-mentioned method in said program code operation.
Apparatus control method, device, system, electronic equipment and storage medium provided by the embodiments of the present application, gateway receive
The environmental information that message distributor is sent;If the environmental information includes preset trigger event and there is the corresponding triggering thing
The execution condition of part, the gateway is controlled according to the environmental information executes the corresponding movement of equipment execution.Pass through message distribution
Forwarding of the device to environmental information, each gateway have the arbitration functions of automation logic, to avoid because of gateway
Failure leads to the paralysis of entire smart home system, improves the robustness of smart home system.
These aspects or other aspects of the application can more straightforward in the following description.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 shows a kind of system architecture diagram suitable for the embodiment of the present application.
Fig. 2 shows the flow charts for the apparatus control method that the application one embodiment provides.
Fig. 3 shows the flow chart of the apparatus control method of another embodiment of the application offer.
Fig. 4 shows the flow chart of the apparatus control method of another embodiment of the application offer.
Fig. 5 shows the flow chart of the apparatus control method of the application further embodiment offer.
Fig. 6 shows the interaction figure of the apparatus control method of the application one embodiment offer.
Fig. 7 shows the functional block diagram of the plant control unit of the application one embodiment offer.
Fig. 8 shows the functional block diagram of the plant control unit of another embodiment of the application offer.
Fig. 9 shows the electricity for being used to execute the apparatus control method according to the embodiment of the present application of the embodiment of the present application proposition
The structural block diagram of sub- equipment.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described.
With the development of technology, smart home enters people's lives gradually, in smart home, with making for user
With the equipment for being linked into smart home system gradually increases, and is unable to satisfy intelligent home equipment if relying solely on a gateway
Networking requirement, at this moment just need multiple gateways to cooperate.
When multiple gateways cooperate, various equipment can be distributed in different gateways, cause to be stranded to the execution of automation
Difficulty, therefore, the method generallyd use are to be responsible for planning as a whole multiple subnets under primary gateway by a primary gateway and close.When any one
The equipment that a gateway is connected has gives the correct time in data, and data can be reported to primary gateway by corresponding subnet pass, is carried out by primary gateway
Corresponding control instruction is sent to corresponding subnet and closed, to realize the function of automation by calculation processing.But this
Under mode, only primary gateway can handle automation logic, just can not be real if primary gateway breaks down and can not work normally
The execution now automated causes the paralysis of entire smart home system.
Therefore, the apparatus control method in the embodiment of the present application is inventors herein proposed, gateway receives what message distribution was sent
Environmental information;If the environmental information includes preset trigger event and the execution condition that there is the corresponding trigger event, institute
It states gateway and the corresponding movement of execution equipment execution is controlled according to the environmental information.Environmental information is turned by message distributor
Hair, each gateway have the arbitration functions of automation logic, to avoid because the failure of a gateway leads to entire intelligence
The paralysis of house system improves the robustness of smart home system.
The embodiment of the present application is described in detail below in conjunction with attached drawing.
Referring to Fig. 1, Fig. 1 shows the system architecture diagram that can be used for apparatus control system provided by the embodiments of the present application.
The system architecture includes common gateway 11, the gateway 12 and sub- equipment 13 for carrying message distributor.Carry message distributor
Message distributor in gateway 12 is connected with all gateways of system, common gateway 11 and message distributor all in system
It is connected, i.e., gateway can carry out data transmission with any message distributor in the system respectively.Sub- equipment 13 can with it is common
Gateway 11 is connected, and can also be connected with the gateway 12 for carrying message distributor, specifically, the connection of sub- equipment 13 and gateway can be with
It is user oneself setting, after sub- equipment 13 is connect with gateway, common gateway 11 and the gateway 12 for carrying message distributor can
To control coupled sub- equipment 13.
Optionally, which can also include server 10, for receiving the message of gateway and sending message to gateway.
Wherein, which can be cloud server, be also possible to local server.Wherein, it can also be deposited in server 10
In a message distributor, which connect with all gateways.
Within the system, multiple gateways can be increased.When each gateway is assigned to an apparatus control system by user, clothes
Business device can inform the gateway address for the carrying message distributor that all gateways there is now in the system.Message point in each gateway
Hair device is connect with other gateways in the gateway and same system of itself directly carries out data communication.
Optionally, within the system, the gateway for carrying message distributor can be integrated with its message distributor carried
It is integrated, if the message distributor is the code or the message point of the execution message distribution function of one section of load in a gateway
Hair device is the device that execution message distribution function in a gateway is arranged.
Optionally, within the system, the gateway for carrying message distributor, the message distributor carried with it can be respectively
Two independent structures, the gateway and the message distributor data connection.
Within the system, each sub- equipment may include the information collecting device for acquiring environmental information, be adopted with basis
The environmental information collected knows the variation of environment, for example, the information collecting device can be proximity sensor, smoke sensor device etc.
Sensor;Each sub- equipment can also include for execute gateway transmission the execution equipment executed instruction, as air-conditioning, TV,
Household electrical appliance such as the switch of lamp etc..
Referring to Fig. 2, the embodiment of the present application provides a kind of apparatus control method, can be applied in apparatus control system
Any one gateway.The embodiment of the present application is illustrated with one of gateway, and this method may include:
Step S110, gateway receive the environmental information that message distributor is sent.
Gateway is connect with message distributor all in system, then gateway can receive the environment of message distributor transmission
Information, in the embodiment of the present application.Wherein, the environmental information is needed for subscribing to from the gateway to all message distributors
The environmental information is then sent to subscription when any one message distributor receives the environmental information by the information wanted
The gateway of the environmental information.
Wherein, environmental information ordered by gateway is the information for other the sub- equipment not connecting with the gateway, and gateway can be with
Judged whether to execute corresponding automation according to the environmental information received.
Step S120, if the environmental information includes preset trigger event and the execution that there is the corresponding trigger event
Condition, the gateway is controlled according to the environmental information executes the corresponding movement of equipment execution.
Gateway after the environmental information for receiving message distributor transmission, gateway may determine that in the environmental information whether
Including preset trigger condition, if in the environmental information including preset trigger event, show there is corresponding automation to touch
Hair, gateway can continue to search the execution condition with the presence or absence of the corresponding trigger event, if having found the corresponding institute of satisfaction
The execution condition of trigger event is stated, gateway, which is then controlled according to the environmental information, executes the corresponding trigger event of equipment execution
Movement.
The apparatus control method that the application proposes, gateway receive the environmental information that message distributor is sent;If the environment
Information includes preset trigger event and the execution condition that there is the corresponding trigger event, and the gateway is believed according to the environment
Breath control executes equipment and executes corresponding movement.Forwarding by message distributor to environmental information, each gateway have certainly
The arbitration functions of dynamicization logic, to avoid being promoted because the failure of a gateway leads to the paralysis of entire smart home system
The robustness of smart home system.
Referring to Fig. 3, another embodiment of the application provides a kind of apparatus control method, on the basis of a upper embodiment
Emphasis describes the process for controlling according to environmental information and executing equipment and executing corresponding movement, and this method may include:
Step S210, the gateway receive automation configuration information, and the automatic configuration information includes mutual corresponding
Trigger event executes condition and executes movement.
Before carrying out smart home and executing corresponding automation, gateway can receive automatic configuration information, it is described from
Dynamicization configuration information is that user is configured according to the demand of itself.In one embodiment, user can pass through movement
The electronic equipments such as terminal are short by the local area network at common place or bluetooth, ZigBee etc. by the automatic configuration information set
Distance communication mode is sent to gateway.In another embodiment, user sets certainly on the electronic equipments such as mobile terminal
After dynamicization configuration information, automatic configuration information can be sent to server by network, then will be described automatic by server
Change configuration information and is sent to gateway.
It wherein, include the trigger event of automation in automatic configuration information, the execution item of the corresponding trigger event
Part and the corresponding trigger event execute movement.Gateway, can be by the automation when receiving automatic configuration information
Configuration information is with JSON, and XML, the storage of the formats such as database is to local file or writes direct in chip, and specific automation is matched
Confidence breath can refer to table 1.
Table 1
Number | Trigger event | Execution condition | Execute movement |
1 | S1: someone passes through | S2: illumination value is lower than 100lx | D1: it turns on light |
2 | S2: illumination value changes | S2: illumination value is higher than 1000lx | D2: curtain is closed |
3 | S2: illumination value changes | S2: illumination value is higher than 500lx | D1: it turns off the light |
Wherein, wherein S1, S2 are the sensor for being connected to gateway, and D1, D2 are the household electrical appliance for being connected to gateway.Number is
The number of automation item number in the automatic configuration information, trigger event are to trigger the event of this automation;Execution condition
The condition for needing to meet is automated to execute this;Execution movement is that this automates the movement needed to be implemented.So at one
In automation, in the case where trigger event occurs, and when meeting the corresponding execution condition of trigger event, then it can execute corresponding
Execute movement.For example, indicate that the automation trigger event that number is 1 occurs if detecting that someone passes through by sensor S1, this
If when meet illumination value that sensor S2 is detected lower than 100lx, control and execute equipment D1 and turn on light.
Step S220, the gateway determine in the automatic configuration information respectively with the trigger event and execute item
The relevant environmental information of part.
In one embodiment, for gateway after receiving the automatic configuration information, available to every automatic
Trigger event in change executes condition and executes movement, may thereby determine that every automate in it is relevant to trigger event
Environmental information, environmental information relevant to the condition of execution, thus the available equipment relevant into the trigger event of gateway,
In the execution condition relevant equipment and the execution movement in relevant equipment.
In another embodiment, gateway gets equipment relevant to the trigger event and the execution respectively
The relevant equipment of condition and the execution act relevant equipment.Wherein, gateway may determine that hold relevant to execution movement
Whether row equipment connect with the gateway;If gateway equipment relevant to execution movement is connected, show the gateway
It can directly control and execute the corresponding movement of equipment execution, then, which then judges whether equipment relevant to execution condition
And the relevant equipment connection of trigger event;If the equipment relevant to trigger event is not connect with the gateway, show
The gateway can not be directly obtained facility information relevant to trigger event, need to get from other gateway and trigger event phase
The facility information of pass, then the gateway then determines that the environmental information is environmental information relevant to the trigger event;If
The equipment relevant to the condition of execution is not connect with the gateway, then shows that the gateway can not be directly obtained and execution condition
Relevant facility information needs to get facility information relevant to execution condition from other gateway, then the gateway is then true
The fixed environmental information is environmental information relevant to the execution condition;If information collection relevant to the execution condition is set
The relevant information collecting device of standby and described trigger event is not all connect with the gateway, then shows that the gateway can not directly acquire
To facility information relevant to trigger event and with the relevant facility information of the condition of execution, need to get from other gateway with
The relevant facility information of trigger event and the relevant facility information of execution condition, then the gateway then determines the environment letter
Breath is to be described with the execution relevant environmental information of condition and the environmental information relevant with trigger event.
For example, a certain gateway is connected to equipment D1, it is S1 someone's process which, which receives trigger event in automation, is held
Row condition is that S2 illumination value is lower than 100lx, and execution movement is turned on light for D1.The gateway is available when receiving the automation
Into the automation, equipment relevant to execution movement is D1, and equipment relevant to trigger event is S1, related to the condition of execution
Equipment be S2.So the gateway can decide whether equipment D1 connection relevant to execution movement, and equipment D1 is connected to the net
The Central Shanxi Plain, then then showing that gateway needs get facility information relevant to trigger event and relevant with execution condition set
Standby information.Therefore, the gateway can continue to determine whether the connection of relevant to trigger event equipment and whether with execution condition
The connection of relevant equipment, equipment S1 relevant to trigger event and equipment S2 relevant with the condition of execution all not with the gateway
Connection, then gateway then can determine that the environmental information is environmental information relevant to S1 and environmental information relevant with S2.
Step S230, the gateway subscribes to determining environmental information to the message distributor, so that the message distribution
When the environmental information that the environmental information that device receives information collecting device acquisition is subscribed to for gateway, send the environmental information to
The gateway.
Determine that environment relevant to trigger event and execution condition is believed respectively in automatic configuration information in the gateway
After breath, then determining environmental information is subscribed to all message distributors.
Specifically, if gateway determine environmental information be environmental information relevant to trigger event and with execute condition it is related
Environmental information, the gateway to all message distributor subscribe to environmental information relevant to trigger event and with execution item
The relevant environmental information of part;If the environmental information that gateway determines is environmental information relevant to trigger event, the gateway is to institute
Some message distributors subscribe to environmental information relevant to trigger event;If the environmental information that gateway determines is and executes condition phase
The environmental information of pass, the gateway subscribe to environmental information relevant to the condition of execution to all message distributors.
Step S240, gateway receive the environmental information that message distributor is sent.
After gateway subscribes to determining environmental information to all message distributors, when message distributor receives the gateway
When the environmental information of subscription, the environmental information can be sent to the gateway for having subscribed to the environmental information as environmental information,
Gateway then can receive the environmental information of message distributor transmission.
Step S250 judges whether the environmental information includes the preset trigger event.
Gateway receives the environmental information of message distributor transmission.Wherein, it may include preset triggering in environmental information
Event may include the execution condition of the corresponding trigger event, and whether it includes pre- that gateway may determine that in the environmental information
If trigger event.If the environmental information includes the relevant information of execution condition, gateway updates the corresponding execution condition
The information of storage is the relevant information of the execution condition.For example, the execution condition of the corresponding trigger event is S2 illumination value
Less than 100lx, the S2 illumination value stored in gateway is 200lx, and the environmental information that gateway receives is that S2 illumination value is 110lx,
Gateway may determine that the environmental information is information relevant to execution condition, then is 200lx by the S2 illumination value stored in gateway
It is updated to environmental information, that is, being updated to S2 illumination value is 110lx.
Specifically, whether gateway judges in the environmental information to include preset trigger event, it can be and judge the ring
It whether include information relevant to the trigger event in the information of border.For example, if trigger event is S1 someone's process, then with touching
The relevant information of hair event can be, and S1 someone passes through or S1 does not pass through.
Step S260 judges whether there is the execution condition of the corresponding trigger event if including.
If the gateway determines that in the environmental information include information relevant to the trigger event, can continue to judge
Whether the relevant information of the trigger event meets trigger event, if the relevant information of the trigger event meets the triggering thing
Part, gateway can continue to determine whether there is the relevant execution condition of the corresponding trigger event.
For example, preset trigger event is S1 someone's process, wherein when someone passes through, output 1 is not having sensor S1
When people passes through, output 0.If the environmental information that gateway receives is that S1 is 0, gateway determine include in the environmental information with it is described
Trigger event relevant information, the i.e. information of sensor S1;Gateway then continues whether judge the information relevant to trigger event
Meet trigger condition, that is, judges that S1 is that 0 whether to meet trigger event S1 be 1.It is 1 since trigger event is S1, and receives
It is 0 that information relevant to trigger event, which is S1, then the environmental information received is unsatisfactory for trigger event.If the environment letter received
It is 1 that breath, which is S1, then can determine that the environmental information received meets the trigger event.
Step S270 corresponds to the execution condition of the trigger event if it exists, and the gateway is according to the environmental information control
System executes equipment and executes corresponding movement.
If gateway determines the execution condition that there is the corresponding trigger event, gateway according to the trigger event, and
The corresponding execution condition of trigger event controls corresponding execution equipment and executes corresponding movement.
In one embodiment, the execution condition that the trigger event is corresponded to existing for gateway can be stored in gateway
Interior original facility information.For example, it is 60lx that the status information of the S2 stored in gateway, which is S2 illumination value, then receiving in gateway
When passing through to S1 someone, it can know that S1 someone passes through the trigger event for automation 1, gateway can also find and be locally stored
S2 status information be S2 illumination value be 60lx, meet S1 someone by corresponding execution condition, gateway then can control
Equipment D1 in automation 1 in execution movement opens lamp.
In another embodiment, the execution condition of the corresponding trigger event existing for gateway can be by disappearing
The environmental information that breath distributor receives.For example, not about S2 information in gateway.So S1 someone is received in gateway to pass through
When, it can know that S1 someone passes through the trigger event for automation 1, gateway finds the execution condition that corresponding S1 someone passes through and is
S2 illumination is lower than 100lx.Meanwhile it is that S2 illumination is that gateway, which also gets another environmental information that message distributor is sent,
60lx, gateway determine that this environmental information does not include trigger event according to automatic configuration information, then carry out the information of S2 more
The illumination value for being newly S2 is 60lx, meets S1 someone by corresponding execution condition, and gateway then can control to be executed in automation 1
Equipment D1 in movement opens lamp.
The apparatus control method that the application proposes, the environmental information sent by receiving message distributor;Judge the ring
Whether border information includes preset trigger event;If including judging whether there is the execution condition of the corresponding trigger event;If
There are the execution condition of the correspondence trigger event, the gateway controls equipment according to the environmental information and executes corresponding move
Make.Each gateway has the processing function of automation logic, so as to avoid the failure of a gateway from leading to entire intelligence
The paralysis of house system improves the robustness of smart home.
Referring to Fig. 4, the another embodiment of the application provides a kind of apparatus control method, equipment control system can be applied to
Any one message distributor in system.The embodiment of the present application is illustrated with one of message distributor, and this method can be with
Include:
Step S310, message distributor receive the environmental information that the first gateway is sent, and the environmental information is by being connected to
State the information collecting device acquisition of the first gateway.
Message distributor can receive the environmental information that all gateways are sent.For the convenience of description, the application is with message point
Hair device is illustrated for receiving the treatment process of the environmental information that one of gateway is sent, and defining the gateway is the first net
It closes.Message distributor receives the environmental information that the first gateway is sent, and environmental information is adopted by the information for being connected to first gateway
Collect equipment acquisition.Wherein, what the information collecting device that first gateway can be the subscribed environmental information of acquisition was connected
Gateway.When the state of the information collecting device of the subscribed environmental information of acquisition changes, which can be with
The state change information is sent to the first gateway of connection, will receive what information collecting device was sent by first gateway
Status information, then the status information, that is, environmental information is sent to all message distributors.For example, the environmental information is
S1 someone passes through, after the sensor S1 for being connected to the first gateway detects someone's warp, by S1 someone by being sent to first
Gateway, then all message distributors are sent to by the message that the first gateway passes through S1 someone.
Specifically, before the environmental information that message distributor receives that the first gateway is sent, the message distributor can be with
Receive the subscription information that gateway is sent.It is second that for convenience of description, in the embodiment of the present application, definition, which sends the gateway of subscription information,
Gateway, i.e., described second gateway is the gateway for needing to subscribe to environmental information.Second gateway is in the environmental information for determining that needs are subscribed to
Afterwards, all message distributors can receive the subscription message sent to the second gateway, and the subscription message includes described second
Gateway needs the environmental information obtained.After message distributor receives the subscription message of the second gateway transmission, one can be sent
Feedback message responds the subscription message to second gateway.
For example, the status information that the environmental information that the second gateway needs to obtain is sensor S1, then it can be to message distributor
It sends and subscribes to message, which can be " I needs to be concerned about the message of sensor S1 ".Message distributor is receiving this
After subscribing to message, corresponding feedback message is sent to the second gateway, which can be " success ", indicate gateway success
Subscribe to the message of sensor S1.When message distributor receives the message of sensor S1, then subscription can be forwarded that message to
Second gateway of sensor S1 message.
The environmental information is distributed to the second net for having subscribed to the environmental information by step S320, the message distributor
It closes.
The environmental information is sent to after receiving environmental information and has had subscribed the environment letter by message distributor
Second gateway of breath.Wherein, second gateway is the gateway for subscribing to environmental information.
The apparatus control method that the application proposes receives the environmental information that the first gateway is sent, institute by message distributor
Environmental information is stated to be acquired by the information collecting device for being connected to first gateway;The environmental information that message distributor will receive
It is distributed to the second gateway for having subscribed to the environmental information.Forwarding by message distributor to environmental information, so that environment is believed
Breath can be released by multiple message distributors, when single message distributor breaks down, will not influence and the message
The normal work of the unrelated gateway of distributor, to improve the robustness of entire smart home system.
Referring to Fig. 5, the application another embodiment provides a kind of apparatus control method, the present embodiment is in previous embodiment
On the basis of, emphasis describes the process that gateway is interacted with message distributor, and this method may include:
Step S410, the message distributor receive the environmental information that the first gateway is sent, and the environmental information is by connecting
Information collecting device to first gateway acquires.
The environmental information is distributed to the second net for having subscribed to the environmental information by step S420, the message distributor
It closes.
Step S430, second gateway receive the environmental information that any message distributor is sent.
Step S440, if the environmental information includes preset trigger event and the execution that there is the corresponding trigger event
Condition, second gateway is controlled according to the environmental information executes the corresponding movement of equipment execution.
Step S410 to step S440 can refer to step corresponding to previous embodiment, and details are not described herein.It simultaneously can also be with
Referring to Fig. 6, the first gateway, message distributor, the interactive process between the second gateway are shown.
It will illustrate this interactive process below with specific example.
Such as system architecture shown in Fig. 1, in the architecture, being connected with gateway A is equipment S1, is connected with gateway B
Equipment be S2 and D2, the equipment being connected with gateway C is D1, wherein gateway A and gateway B are there are message distributor, in gateway C
There is no message distributor.Gateway A, gateway B, gateway C can receive identical automatic configuration information, for example, all gateways
The automatic configuration information that can be received is automation 1, and the specifying information for automating 1 can refer to table 2.
Table 2
Number | Trigger event | Execution condition | Execute movement |
1 | S1: someone passes through | S2: illumination value is lower than 100lx | D1: it turns on light |
Wherein, when receiving the automation of automatic configuration information encoding 1, processing can be deposited by gateway A, gateway B, gateway C
In difference.Gateway A gets equipment D1 relevant to execution movement and does not connect with gateway A when receiving this automation,
So gateway A does not then subscribe to any message for automation 1.Gateway B gets when receiving this automation and executes movement
Relevant equipment D1 is not connect with gateway B, then gateway B does not then subscribe to any message for automation 1.Gateway C is being received
When this automates, gets equipment D1 relevant to execution movement and connect with gateway C, but equipment relevant to trigger event
S1 and equipment S2 relevant to the condition of execution are not connect with gateway C, then gateway C is then ordered to all message distributors
Read the message of S1 and S2.
In one embodiment, gateway C can send a subscription message, i.e. gateway C to all message distributors
A subscription message " I needs to be concerned about the message of sensor S1 and sensor S2 " is sent to all message distributors.Work as message
After distributor receives the subscription message, then sends feedback message and give gateway C, which can be " success ", with table
Show the message of gateway C successful subscription sensor S1 and sensor S2.
In another embodiment, gateway C can continuously transmit two subscription message to all message distributors, i.e.,
The first subscription message that gateway C is sent to all message distributor, this first subscription message can be that " I needs to be concerned about
The message of sensor S1 ", gateway C continue to send Article 2 subscription message to all message distributors, and Article 2 subscription disappears
Breath can be " I needs to be concerned about the message of sensor S2 ".
When so message distributor receives the message of sensor S1 or sensor S2, then the message of S1 or S2 are sent to
Gateway C, gateway C judge whether to execute movement according to the environmental information received.For example, sensor S1 detects that someone passes through
When, someone is sent to the gateway A connecting with sensor S1 by this information, gateway A disappears what sensor S1 someone passed through
Breath is sent to all message distributors, message distributor receive S1 someone by message after, disappear what S1 someone passed through
The gateway C, gateway C that breath is distributed to the message for having subscribed sensor S1 then can receive the message of sensor S1.
The message that S1 someone passes through is compared gateway C with automatic configuration information, and S1 someone can be known by being
Information relevant to trigger event in automation 1, for the trigger event of automation 1.Gateway C can decide whether to be stored with satisfaction
The execution condition of the corresponding trigger event, it is that S2 illumination is low that gateway C, which can inquire the execution condition that corresponding S1 someone passes through,
In 100lx, if at this point, the illumination value for the S2 that gateway C is received is 80lx, then gateway C, which can determine that, meets the execution item
Part, alternatively, the new illumination value for the S2 that gateway C is not received by, searches the illumination value being locally stored, if the illumination value saved
For 80lx, then gateway C, which also can determine that, meets the execution condition, then the control instruction that can send " turning on light " gives execution equipment
The instruction that D1, D1 receive " turning on light " then turns on lamp and completes this automation.
The apparatus control method that the application proposes receives the environmental information that the first gateway is sent, institute by message distributor
Environmental information is stated to be acquired by the information collecting device for being connected to first gateway;Message distributor distributes the environmental information
To the second gateway for having subscribed to the environmental information;Second gateway receives the environmental information that any message distributor is sent;
If the environmental information includes preset trigger event and the execution condition that there is the corresponding trigger event, second gateway
It is controlled according to the environmental information and executes the corresponding movement of equipment execution.Forwarding by message distributor to environmental information, often
A gateway all has the arbitration functions of automation logic, to avoid because the failure of a gateway leads to entire smart home system
The paralysis of system improves the robustness of smart home system.
Referring to Fig. 7, it illustrates a kind of plant control unit 500 provided by the embodiments of the present application, the equipment control
Device 500 includes receiving module 510, execution module 520.Receiving module 510 receives message distributor for the gateway and sends
Environmental information;Execution module 520, if including preset trigger event for the environmental information and there is the corresponding triggering
The execution condition of event, the gateway is controlled according to the environmental information executes the corresponding movement of equipment execution.
Wherein, the environmental information that message distributor is sent is received by gateway;If the environmental information includes preset touching
Hair event and the execution condition that there is the corresponding trigger event, the gateway control execution equipment according to the environmental information and hold
The corresponding movement of row.Forwarding by message distributor to environmental information, each gateway have the judgement function of automation logic
Can, to avoid improving smart home system because the failure of a gateway leads to the paralysis of entire smart home system
Robustness.
Further, the execution module 520 is also used to judge whether the environmental information includes the preset triggering
Event;If including judging whether there is the execution condition of the corresponding trigger event;Holding for the trigger event is corresponded to if it exists
Row condition, the gateway is controlled according to the environmental information executes the corresponding movement of equipment execution.
Receive trigger event when, then there are execution condition control execute equipment acted, from
And it realizes and the movement execution for executing equipment is triggered by trigger event.
Further, it if it includes the relevant information of execution condition that the execution module 520, which is also used to the environmental information, updates
The information of the corresponding execution condition storage is the relevant information of the execution condition;If the environmental information includes trigger event
Relevant information, judges whether the relevant information of the trigger event meets trigger event, if the relevant letter of the trigger event
Breath meets the trigger event, judges whether the information for corresponding to the execution condition storage meets the execution condition, if meeting
The execution condition, the control execution equipment execution trigger event is corresponding to execute movement.
In the case where having received execution condition relevant information, the relevant information of execution condition is updated, to make connecing
When receiving trigger event and carrying out the judgement of execution condition whether met, it can be sentenced according to external newest environmental aspect
It is disconnected.
Further, the gateway is controlled according to the environmental information before executing the corresponding movement of equipment execution, described
Receiving module 510 is also used to the environmental information that the gateway receives the information collecting device acquisition of connection.Gateway itself connection
The environmental information of information collecting device acquisition can be sent to the gateway, be used as the relevant letter of gateway trigger event
Breath executes the relevant information of condition.
Further, the receiving module 510 is also used to the gateway and the environmental information is sent to the message point
Send out device.The environmental information received is given to message distributor by gateway, so that message distributor be allow to send out the environmental information
It is sent to other gateways for having subscribed the environmental information.
Further, before the gateway receives the environmental information that message distributor is sent, the receiving module 510 is also used
Automation configuration information is received in the gateway, the automatic configuration information includes mutual corresponding trigger event, executes item
Part and execute movement;The execution module 520 for the gateway determine in the automatic configuration information respectively with triggering
Event and the relevant environmental information of execution condition;The gateway subscribes to determining environmental information to the message distributor, with
It, will be described when the message distributor being made to receive the environmental information of environmental information gateway subscription of information collecting device acquisition
Environmental information is sent to the gateway.Gateway can carry out the subscription of environmental information according to automatic configuration information, on the one hand, use
Family can execute equipment by setting automatic configuration information configuration and carry out the trigger event of movement execution and execute condition;Separately
On the one hand, gateway only can also subscribe to relevant environmental information in automatic configuration information to message distributor, so that gateway is not
Necessity obtains all message that message distributor receives from message distributor, and message distributor also not necessarily disappears what is received
Breath is sent to all gateways, reduces data interaction, improves data processing and efficiency of transmission.
Further, the gateway determines relevant to trigger event and execution condition in the automatic configuration information
Before environmental information, the execution module 520 is also used to execute movement in the gateway judgement and the automatic configuration information
Whether relevant execution equipment connect with the gateway;If the execution acts relevant execution equipment and connect with the gateway,
Then judge the relevant information collecting device of the execution condition and the relevant information collecting device of the trigger event whether with institute
State gateway connection;If it is not, executing relevant to trigger event and execution condition in the determination automatic configuration information
The step of environmental information.In the case where gateway is connected with and executes equipment in automatic configuration information, gateway is likely to according to touching
Therefore control of the hair event triggering to equipment is executed in the case where connection executes equipment, then determines whether to subscribe to environment letter
Breath reduces data interaction without to subscribe to the relevant context information in all automatic configuration information, improve data processing with
And efficiency of transmission.
Further, if the execution module 520 is also used to the relevant information collecting device of the execution condition and described
The relevant information collecting device of trigger event is not all connect with the gateway, and the gateway is subscribed to and touched to the message distributor
The relevant environmental information of hair event and environmental information relevant to the condition of execution, if the relevant information collection of the execution condition
Equipment is not connect with the gateway, and the gateway subscribes to environment letter relevant to the execution condition to the message distributor
Breath, if the relevant information collecting device of the trigger event is not connect with the gateway, the gateway is to the message distributor
Subscribe to environmental information relevant to trigger event.For the environmental information in automatic configuration information, if gateway is connected with correspondence
Information collecting device, then the environmental information can be received from information collecting device, without being ordered from message distributor
It reads.Therefore, for the environmental information in automatic configuration information, gateway only can subscribe to itself from message distributor and not connect
Information collecting device acquisition information, reduce data interaction, improve data processing and efficiency of transmission.
Wherein, the environmental information sent by receiving message distributor;Judge whether the environmental information includes preset
Trigger event;If including judging whether there is the execution condition of the corresponding trigger event;The trigger event is corresponded to if it exists
Execution condition, the gateway is controlled according to the environmental information to be executed equipment and executes corresponding movement.Each gateway has
The processing function of automation logic mentions so as to avoid the failure of a gateway from leading to the paralysis of entire smart home system
The robustness of smart home is risen.
It is real that plant control unit 500 provided by the embodiments of the present application can be realized gateway in the embodiment of the method for Fig. 2 to Fig. 3
Now each process of the apparatus control method, to avoid repeating, which is not described herein again.
Referring to Fig. 8, it illustrates a kind of plant control unit 600 provided by the embodiments of the present application, the equipment control
Device 600 includes receiving module 610, distribution module 620.
Receiving module 610, message distributor receive the environmental information that the first gateway is sent, and the environmental information is by being connected to
The information collecting device of first gateway acquires;The environmental information is distributed to by distribution module 620, the message distributor
The second gateway of the environmental information is subscribed to.
Further, the subscription that the distribution module 620 is also used to that the second gateway of the message distributor reception is sent disappears
Breath, the message of subscribing to includes the environmental information that second gateway needs to obtain;The message distributor sends feedback message
The subscription message is responded to second gateway.
Wherein, the environmental information that the first gateway is sent is received by message distributor, the environmental information is by being connected to
State the information collecting device acquisition of the first gateway;The environmental information received is distributed to and has subscribed to the environment by message distributor
Second gateway of information.Forwarding by message distributor to environmental information allows environmental information to pass through multiple message point
Hair device releases, and when single message distributor breaks down, will not influence the gateway unrelated with the message distributor just
Often work, to improve the robustness of entire smart home system.
It is real that plant control unit 600 provided by the embodiments of the present application can be realized gateway in embodiment of the method described in Fig. 4
Now each process of the apparatus control method, to avoid repeating, which is not described herein again.
The embodiment of the present application provides a kind of electronic equipment, which includes processor and memory, the memory
In be stored at least one instruction, at least a Duan Chengxu, code set or instruction set, this at least one instruction, an at least Duan Cheng
Sequence, the code set or instruction set are loaded as the processor and are executed to realize the control of the equipment as provided by above method embodiment
Method.
Memory can be used for storing software program and module, and processor is stored in the software program of memory by operation
And module, thereby executing various function application and data processing.Memory can mainly include storing program area and storage number
According to area, wherein storing program area can application program needed for storage program area, function etc.;Storage data area can store basis
The equipment uses created data etc..In addition, memory may include high-speed random access memory, can also include
Nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Phase
Ying Di, memory can also include Memory Controller, to provide access of the processor to memory.
Fig. 9 is a kind of hardware block diagram of the electronic equipment of apparatus control method provided by the embodiments of the present application.Such as Fig. 9
Shown, it may include one or more which, which can generate bigger difference because configuration or performance are different,
Processor (Central Processing Unit, CPU) 710 (processor 710 can include but is not limited to Micro-processor MCV or
The processing unit of programmable logic device FPGA etc.), memory 730 for storing data, one or more storages answer
With the storage medium 720 (such as one or more mass memory units) of program 723 or data 722.Wherein, memory
730 and storage medium 720 can be of short duration storage or persistent storage.The program for being stored in storage medium 720 may include one
Or more than one module, each module may include to the series of instructions operation in electronic equipment.Further, processor
710 can be set to communicate with storage medium 720, and the series of instructions behaviour in storage medium 720 is executed on electronic equipment 700
Make.Electronic equipment 700 can also include one or more power supplys 760, one or more wired or wireless networks connect
Mouth 750, one or more input/output interfaces 740, and/or, one or more operating systems 721, such as
WindowsServerTM, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM etc..
Input/output interface 740 can be used for that data are received or sent via a network.Above-mentioned network is specifically real
Example may include the wireless network that the communication providers of server 700 provide.In an example, input/output interface 740 includes
One network adapter (Network Interface Controller, NIC), can pass through base station and other network equipment phases
Even so as to be communicated with internet.In an example, input/output interface 740 can be radio frequency (Radio
Frequency, RF) module, it is used to wirelessly be communicated with internet.
It will appreciated by the skilled person that structure shown in Fig. 9 is only to illustrate, not to above-mentioned electronic equipment
Structure cause to limit.For example, electronic equipment 700 may also include the more perhaps less component than shown in Fig. 9 or have
The configuration different from shown in Fig. 9.
The embodiment of the present application also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program realizes each process of above equipment control method embodiment, and energy when the computer program is executed by processor
Reach identical technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as only
Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation
RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within protection of the invention.
Claims (16)
1. a kind of apparatus control method, which is characterized in that the described method includes:
Gateway receives the environmental information that message distributor is sent;
If the environmental information includes preset trigger event and the execution condition that there is the corresponding trigger event, the gateway
It is controlled according to the environmental information and executes the corresponding movement of equipment execution.
2. if the method according to claim 1, wherein the environmental information includes preset trigger event
And there is the execution condition of the corresponding trigger event, the gateway executes corresponding movement according to the environmental information, comprising:
Judge whether the environmental information includes the preset trigger event;
If including judging whether there is the execution condition of the corresponding trigger event;
The execution condition of the trigger event is corresponded to if it exists, and the gateway is controlled according to the environmental information executes equipment execution
Corresponding movement.
3. method according to claim 2, which is characterized in that the environmental information include the relevant information of trigger event and/
Or the relevant information of condition is executed, it is described to judge whether the environmental information includes the preset trigger event;If including,
Judge whether there is the execution condition of the corresponding trigger event;The execution condition of the trigger event is corresponded to if it exists, it is described
Gateway is controlled according to the environmental information executes the corresponding movement of equipment execution, comprising:
If the environmental information includes the relevant information of execution condition, it is described for updating the information of the corresponding execution condition storage
The relevant information of execution condition;
If the environmental information includes the relevant information of trigger event, judge whether the relevant information of the trigger event meets touching
Hair event judges the letter for corresponding to the execution condition storage if the relevant information of the trigger event meets the trigger event
Whether breath meets the execution condition, if meeting the execution condition, it is corresponding that control executes the equipment execution trigger event
Execute movement.
4. the method as described in claim 1, which is characterized in that the gateway controls execution equipment according to the environmental information and holds
Before the corresponding movement of row, further includes:
The gateway receives the environmental information of the information collecting device acquisition of connection.
5. method as claimed in claim 4, which is characterized in that the method also includes:
The environmental information is sent to the message distributor by the gateway.
6. the method as described in claim 1-5 any claim, which is characterized in that the gateway receives message distributor hair
Before the environmental information sent, including;
The gateway receives automation configuration information, and the automatic configuration information includes mutual corresponding trigger event, execution
Condition and execute movement;
The gateway determine in the automatic configuration information respectively to trigger event and execute the relevant environmental information of condition;
The gateway subscribes to determining environmental information to the message distributor, adopts so that the message distributor receives information
When integrating the environmental information that the environmental information that equipment acquires is subscribed to as gateway, the gateway is sent by the environmental information.
7. method as claimed in claim 6, which is characterized in that the gateway determine in the automatic configuration information with triggering
Before event and the relevant environmental information of execution condition, further includes:
The gateway judges whether execution equipment relevant to execution movement in the automatic configuration information connects with the gateway
It connects;
If the execution acts relevant execution equipment and connect with the gateway, judge that the relevant information of the execution condition is adopted
Whether collection equipment and the relevant information collecting device of the trigger event connect with the gateway;
If it is not, executing environmental information relevant to trigger event and execution condition in the determination automatic configuration information
The step of.
8. method as claimed in claim 6, which is characterized in that the gateway subscribes to determining environment to the message distributor
Information, comprising:
If the relevant information collecting device of execution condition and the relevant information collecting device of the trigger event all not with institute
State gateway connection, the gateway to the message distributor subscribe to relevant to trigger event environmental information and with execution condition
Relevant environmental information,
If the relevant information collecting device of the execution condition is not connect with the gateway, the gateway is to the message distributor
Environmental information relevant to the execution condition is subscribed to,
If the relevant information collecting device of the trigger event is not connect with the gateway, the gateway is to the message distributor
Subscribe to environmental information relevant to trigger event.
9. a kind of apparatus control method, which is characterized in that the described method includes:
Message distributor receives the environmental information that the first gateway is sent, and the environmental information is by being connected to the letter of first gateway
Breath acquisition equipment acquisition;
The environmental information is distributed to the second gateway for having subscribed to the environmental information by the message distributor.
10. method as claimed in claim 9, which is characterized in that the message distributor receives the environment that the first gateway is sent
Before information, comprising:
The message distributor receives the subscription message that the second gateway is sent, and the subscription message includes the second gateway needs
The environmental information of acquisition;
The message distributor sends feedback message and responds to second gateway to the subscription message.
11. a kind of apparatus control method, which is characterized in that the described method includes:
Message distributor receives the environmental information that the first gateway is sent, and the environmental information is by being connected to the letter of first gateway
Breath acquisition equipment acquisition;
The environmental information is distributed to the second gateway for having subscribed to the environmental information by the message distributor;
Second gateway receives the environmental information that any message distributor is sent;
If the environmental information includes preset trigger event and the execution condition that there is the corresponding trigger event, described second
Gateway is controlled according to the environmental information executes the corresponding movement of equipment execution.
12. a kind of plant control unit, which is characterized in that described device includes:
Receiving module receives the environmental information that message distributor is sent for gateway;
Execution module, if including preset trigger event and the execution that there is the corresponding trigger event for the environmental information
Condition, the gateway is controlled according to the environmental information executes the corresponding movement of equipment execution.
13. a kind of plant control unit, which is characterized in that described device includes:
Receiving module receives the environmental information that the first gateway is sent for message distributor, and the environmental information is by being connected to
State the information collecting device acquisition of the first gateway;
The environmental information is distributed to the second net for having subscribed to the environmental information for the message distributor by distribution module
It closes.
14. a kind of apparatus control system, which is characterized in that the apparatus control system includes that multiple gateways, one or more disappear
Distributor is ceased, the multiple gateway includes the first gateway and the second gateway, wherein
One or more of message distributors are used to receive the environmental information of the first gateway transmission, and the environmental information is by connecting
Information collecting device to first gateway acquires;
One or more of message distributors have subscribed to the second of the environmental information for the environmental information to be sent to
Gateway;
Second gateway is used to receive the environmental information that any message distributor is sent;
Include preset trigger event and there is the corresponding trigger event if second gateway is also used to the environmental information
Execution condition, controlled according to the environmental information and execute equipment and execute corresponding movement.
15. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
One or more processors;
Memory;
One or more application program, wherein one or more of application programs are stored in the memory and are configured
To be executed by one or more of processors, one or more of programs are configured to carry out as claim 1 to 8 is any
Method or such as described in any item methods of claim 9 to 10 described in.
16. a kind of computer-readable storage medium, which is characterized in that be stored with journey in the computer-readable storage medium
Sequence code, said program code can be called by processor and execute method as claimed in any one of claims 1 to 8 or as right is wanted
Seek 9 to 10 described in any item methods.
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 true CN110113232A (en) | 2019-08-09 |
CN110113232B 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) |
Cited By (6)
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 |
CN113037798A (en) * | 2019-12-25 | 2021-06-25 | 美的集团股份有限公司 | Multi-gateway communication method, system, electronic device and storage medium |
CN113037530A (en) * | 2019-12-25 | 2021-06-25 | 美的集团股份有限公司 | Multi-gateway scene implementation method and system, electronic device and storage medium |
CN114584415A (en) * | 2022-01-24 | 2022-06-03 | 杭州博联智能科技股份有限公司 | Whole-house intelligent scene distributed implementation method, system, device and medium |
CN114679480A (en) * | 2022-02-14 | 2022-06-28 | 深圳绿米联创科技有限公司 | Device control method, device, electronic device and storage medium |
CN115390462A (en) * | 2021-05-20 | 2022-11-25 | 深圳绿米联创科技有限公司 | Equipment control method and device, terminal equipment, gateway and medium |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040196858A1 (en) * | 2003-02-07 | 2004-10-07 | Kirk Tsai | Intermediary network system and method for facilitating message exchange between wireless networks |
CN1567845A (en) * | 2003-06-26 | 2005-01-19 | 华为技术有限公司 | A network equipment driving system and method for implementing message management |
CN103532755A (en) * | 2013-10-12 | 2014-01-22 | 北京奇虎科技有限公司 | Method and system for processing distributed asynchronous events |
CN104749962A (en) * | 2015-03-09 | 2015-07-01 | 联想(北京)有限公司 | Linkage rule based smart home control method and device |
CN105830462A (en) * | 2013-12-16 | 2016-08-03 | 三菱电机株式会社 | Gateway, management center, and remote access system |
CN105933191A (en) * | 2016-06-22 | 2016-09-07 | 成都博盛信息技术有限公司 | Control method for smart home |
CN106094754A (en) * | 2016-07-12 | 2016-11-09 | 腾讯科技(深圳)有限公司 | Apparatus control system, method and device |
US20160381086A1 (en) * | 2010-04-29 | 2016-12-29 | Centurylink Intellectual Property Llc | Multi-Access Gateway for Direct to Residence Communication Services |
CN106292302A (en) * | 2015-05-22 | 2017-01-04 | 阿里巴巴集团控股有限公司 | The control method of intelligent domestic system and device |
CN106325250A (en) * | 2016-09-12 | 2017-01-11 | 珠海格力电器股份有限公司 | Electrical appliance linkage control method and 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 |
CN108462742A (en) * | 2018-03-02 | 2018-08-28 | 厦门狄耐克智能科技股份有限公司 | A kind of gateway coordinator for smart home and conflict coordination method therein |
CN108540361A (en) * | 2017-02-15 | 2018-09-14 | 福特全球技术公司 | Central gateway for vehicle networked enhancing |
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 |
CN109491263A (en) * | 2018-12-13 | 2019-03-19 | 深圳绿米联创科技有限公司 | Intelligent home equipment control method, device, system and storage medium |
-
2019
- 2019-03-27 CN CN201910239777.6A patent/CN110113232B/en active Active
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040196858A1 (en) * | 2003-02-07 | 2004-10-07 | Kirk Tsai | Intermediary network system and method for facilitating message exchange between wireless networks |
CN1567845A (en) * | 2003-06-26 | 2005-01-19 | 华为技术有限公司 | A network equipment driving system and method for implementing message management |
US20160381086A1 (en) * | 2010-04-29 | 2016-12-29 | Centurylink Intellectual Property Llc | Multi-Access Gateway for Direct to Residence Communication Services |
CN103532755A (en) * | 2013-10-12 | 2014-01-22 | 北京奇虎科技有限公司 | Method and system for processing distributed asynchronous events |
CN105830462A (en) * | 2013-12-16 | 2016-08-03 | 三菱电机株式会社 | Gateway, management center, and remote access system |
CN104749962A (en) * | 2015-03-09 | 2015-07-01 | 联想(北京)有限公司 | Linkage rule based smart home control method and device |
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 |
CN106094754A (en) * | 2016-07-12 | 2016-11-09 | 腾讯科技(深圳)有限公司 | Apparatus control system, method and device |
CN106325250A (en) * | 2016-09-12 | 2017-01-11 | 珠海格力电器股份有限公司 | Electrical appliance linkage control method and system based on information detection |
CN106527162A (en) * | 2016-11-30 | 2017-03-22 | 海尔优家智能科技(北京)有限公司 | Linkage control method and device based on AllJoyn |
CN108540361A (en) * | 2017-02-15 | 2018-09-14 | 福特全球技术公司 | Central gateway for vehicle networked enhancing |
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 |
CN108462742A (en) * | 2018-03-02 | 2018-08-28 | 厦门狄耐克智能科技股份有限公司 | A kind of gateway coordinator for smart home and conflict coordination method therein |
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 |
CN109491263A (en) * | 2018-12-13 | 2019-03-19 | 深圳绿米联创科技有限公司 | Intelligent home equipment control method, device, system and storage medium |
Non-Patent Citations (2)
Title |
---|
HSUAN-YU HUANG: "Smart home at a finger tip: OSGi-based MyHome", 《2009 IEEE INTERNATIONAL CONFERENCE ON SYSTEMS, MAN AND CYBERNETICS》 * |
柳云龙: "智能家居控制方法的研究与改进", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 * |
Cited By (9)
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 |
CN113037798A (en) * | 2019-12-25 | 2021-06-25 | 美的集团股份有限公司 | Multi-gateway communication method, system, electronic device and storage medium |
CN113037530A (en) * | 2019-12-25 | 2021-06-25 | 美的集团股份有限公司 | Multi-gateway scene implementation method and system, electronic device and 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 |
CN115390462A (en) * | 2021-05-20 | 2022-11-25 | 深圳绿米联创科技有限公司 | Equipment control method and device, terminal equipment, gateway and medium |
CN114584415A (en) * | 2022-01-24 | 2022-06-03 | 杭州博联智能科技股份有限公司 | Whole-house intelligent scene distributed implementation method, system, device and medium |
CN114584415B (en) * | 2022-01-24 | 2023-11-28 | 杭州博联智能科技股份有限公司 | Method, system, device and medium for realizing scene distribution of full house intelligence |
CN114679480A (en) * | 2022-02-14 | 2022-06-28 | 深圳绿米联创科技有限公司 | Device control method, device, electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110113232B (en) | 2021-07-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110113232A (en) | Apparatus control method, device, system, electronic equipment and storage medium | |
US10791193B2 (en) | Remote access gateway configurable control system | |
CN105739322A (en) | Intelligent engine system and intelligent household system | |
CN109753034B (en) | Control method, control device, electronic equipment and storage medium | |
CN106647304A (en) | Household electrical appliance linkage control method, household electrical appliance, server, and system | |
CN105515853A (en) | Wireless network node and state update method thereof | |
JP2002534841A (en) | Home control device with distributed network device | |
CN104267701B (en) | The control method and device of smart home newly added equipment | |
CN106789378A (en) | Information prevents from revealing method and system in smart home | |
CN111897462A (en) | Intelligent display control method and device in intelligent household APP | |
CN111913402A (en) | Smart home batch configuration method, device and system and electronic equipment | |
CN110324216A (en) | Automatic configuration method, apparatus, system, server and storage medium | |
CN108986807A (en) | Device control method and apparatus, storage medium, and electronic apparatus | |
CN113691935A (en) | Network optimization method and device and electronic equipment | |
CN115277280A (en) | Control method of intelligent household equipment and control method of server | |
CN109561329A (en) | Control method, mobile terminal and the computer readable storage medium of smart television | |
CN104333497B (en) | A kind of intelligent home network automatic device discovery method and network system | |
CN114143143A (en) | Method and device for determining gateway equipment, storage medium and electronic device | |
CN114697150B (en) | Command issuing method and device, storage medium and electronic device | |
CN116418613A (en) | Message reflow processing method and device, storage medium and electronic device | |
RU2399161C2 (en) | System and method of processing control interception during failure in distributed environment with routing | |
CN114326420A (en) | Intelligent grouping method and device for equipment, intelligent equipment and storage medium | |
CN114280953A (en) | Scene mode creating method and device, electronic equipment and storage medium | |
CN107807619A (en) | Intelligent home control system and its method of work based on virtual server module | |
EP4264778A1 (en) | Methods and systems for remotely controlling smart electrical switches and associated devices using analytics |
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 |