The content of the invention
Real " Based Intelligent Control " the invention aims to realize intelligent home device（Scene connection i.e. as herein described
Dynamic control）, user only needs to most to start by " scene linkage sensors equipment or scene device trigger condition " and " control device
Specific execute instruction " presets the Flash storages into ZigBee intelligent domestic gateways by APP, and gateway receives sensor and sets afterwards
Standby data or scene device parameter are compared by the preset trigger condition stored with Flash, if reaching trigger condition, gateway will
The specific execute instruction of default control device is read and sent from Flash again and then to allow corresponding equipment to perform user automatically pre-
If scene linkage function.Except the process that pre-sets for most starting, hereafter whole scene linkage implementation procedure do not need APP and
The participation of cloud platform, really completes Based Intelligent Control." scene " refers to some practical scenes in smart home, including " is gone home
Scene ", " scene of leaving home ", " scene of having dinner " and " Entertainment Scene " etc., once user triggers certain scene（I.e. scene device is reported
Certain scene is numbered to gateway）, gateway will send instructions down, and the scene for allowing corresponding equipment to perform user preset is acted；" connection
It is dynamic " refer to data linkage of the gateway to some sensor devices, including door sensor, water sensor, smoke detector and combustion gas are visited
Survey device etc. and be related to the sensor of safety-security area, once sensor status data change sensor equipment will upload data to net
Close, gateway judges that meeting linkage condition can then send instructions down, allows corresponding equipment to perform the linkage action of user preset.
A kind of ZigBee intelligent domestic gateways scene inter-linked controlling method of the invention, reality is given using following technical scheme
It is existing：
Core product of the invention is ZigBee intelligent domestic gateways, other also include mobile phone A PP, ZigBee sensor device,
ZigBee scene devices and ZigBee control devices.
Mobile phone A PP is mainly used in the execution condition of user preset scene linkage and performs action, and user preset is completed,
The parameter for setting can be issued preservation to gateway by APP, these parameters for setting be exactly below ZigBee intelligent domestic gateways hold
The judgement of row scene linkage and execution foundation.
ZigBee sensor devices are mainly related to including door sensor, water sensor, smoke detector and gas detector etc.
The sensor of safety-security area.It is responsible for the safety monitoring of domestic environment, once domestic environment changes, corresponding sensor device
Gateway will be sent on status data immediately detection, it is the data source that gateway performs " linkage ", is intelligent domestic system
" antenna ", it is significant for home security.
ZigBee scene devices refer to the ZigBee equipment with user input control, usually one 86 box panels, tool
There are 3 ~ 6 scene load buttons, one Arabic numerals since 1 of each load button correspondence are numbered, i.e., each numeral is right
A scene is answered, user presses certain button and reports corresponding numeral numbering to gateway, and gateway judges that scene numbering performs phase
Scene is answered to act.
ZigBee control devices refer to have the ZigBee equipment for controlling user's home equipment execution action, including motorized window
Curtain, variable connector, Intelligent colorful lamp, alarm etc..When gateway judges that conditions present meets the execution condition of scene linkage, then can
The control instruction of corresponding ZigBee control devices is issued, the scene demand of user is completed, is the execution of gateway scene linkage function
The execution condition of scene includes " scene numbering ", " timing " and " delay time ".Some scenes need fixed
Shi Zhihang, such as " getting up early scene " need every morning 7:00 timing performs the scene for opening curtain and lamp, as long as user triggers
The scene button in scene control, later can every morning 7:00 timing performs the scene.Some scenes need time delay
Perform, such as need of short duration illumination when " scene of leaving home " user leaves home, then click on the scene control and leave home time delay 5 seconds after button
Close family lighting apparatus.
The execution condition of linkage includes " deploy troops on garrison duty and withdraw a garrison effectively ", " linkage ZigBee sensor devices MAC Address ", " linkage
Data fiducial value " and " linkage data manner of comparison "." deploy troops on garrison duty and withdraw a garrison effectively " refers to that some linkages are needed when deploying troops on garrison duty or withdrawing a garrison
Perform, the demand of such as " linkage of window magnetic " user is to perform in the case where long-time leaves home the state of deploying troops on garrison duty to alarm and warning message is pushed away
Send, be at this moment accomplished by being arranged to " deploying troops on garrison duty effectively "." linkage ZigBee sensor devices MAC Address " is for indicating unique linkage
Sensor, only meets the sensor that user indicates and data mode report gateway occurs can just carry out linkage to judge and perform." connection
Dynamic data fiducial value " refers to the threshold data that user needs to be linked, and " linkage data manner of comparison " is to show and number of threshold values
According to manner of comparison be greater than, equal to or less than just being linked, the linkage user of such as temperature sensor is set greater than 30
Degree opens air-conditioning equipment, then " linkage data fiducial value " is 30, and " linkage data manner of comparison " is more than threshold value.
The execution action of scene linkage is exactly in fact the execute instruction of the specific ZigBee control devices of a rule.Such as user
Need in the linkage execution action of certain scene for parlor lamp is opened, then APP can be packed simultaneously the specific instruction that parlor lamp is opened
Download is stored in gateway.When gateway judges that meeting the scene linkage instruction bag that can then be stored into of execution condition reads and be issued to parlor
Lamp switch equipment performs opening operation, completes user's request.
ZigBee intelligent domestic gateways are the core products of whole scene linkage function, and its most crucial technology is exactly " black
Box technology ".As described above, user only need to by APP by scene perform condition, linkage execution condition and scene link perform it is dynamic
The instruction packing of work is issued to ZigBee intelligent domestic gateways, and gateway all can deposit these parameter instructions according to fixed form
Store up the Flash chip that gateway is carried.User once triggers certain scene or sensor-triggered certain linkage reported data afterwards,
As long as gateway judges that the reported data is the data of scene device or sensor device, then can be from Flash chip by all
The rule of execution conditional parameter one read and strictly compare, if all meeting execution condition after parameter judgement, can will be corresponding
Perform action command to be read from Flash and be directly issued to corresponding ZigBee control devices, complete user's request.Except first
Secondary to be set using APP, whole scene linkage process does not need the participation of APP and server afterwards, it is not necessary to the network of internet
Communication.It is on earth that what scene occurs that gateway need not be concerned about in the judgement implementation procedure of whole scene linkage, and what is on earth
Sensor is linked, and need not be concerned about what equipment will carry out coordinated signals on earth, as long as gateway is the data of Flash
Read-around ratio compared with, meet and issue, the group package operation that gateway need not be instructed, here it is so-called " black box technology ".This
The technology of the kind easily increase of new sensor, new equipment and new scene below, as long as APP does appropriate addition and downloads function Access Gateway
It is capable of achieving the scene linkage function of new product new scene.
Preferably, described scene linkage performs conditional parameter and performs action command is all loaded into ZigBee intelligence man
In occupying the outside Flash of gateway.
Preferably, the judgement of the scene linkage performs the reading for all passing through Flash by ZigBee intelligent domestic gateways
Performed after going out, it is not necessary to the intervention of APP and server.
Preferably, the increase of the expansible new scenes of mobile phone A PP and new sensor is without ZigBee intelligence man
The upgrading of gateway is occupied to realize new scene linkage function.
Substantial effect of the invention is：The scene linkage function of ZigBee intelligent domestic gateways localization does not need APP
With the participation of server, it is not necessary to internet network communication, more preferably, Consumer's Experience is more preferably for real-time effect.What is wherein used is " black
Box technology " reduces the resource requirement of gateway, reduces the development difficulty of gateway, while being easy to the new scene linkage function in later stage
Extension without the upgrading iteration of gateway, reduce the maintenance upgrade cost of gateway.
Embodiment：A kind of ZigBee intelligent domestic gateways scene inter-linked controlling method of the present embodiment, as shown in figure 1, bag
Include following steps：
S1：Scene is performed parameter by APP if scene set --- and " scene numbering ", " timing " and " delay time " sets
ZigBee intelligent domestic gateways are downloaded into after the completion of putting；APP will link if linkage is set, and parameter --- " deploying troops on garrison duty to withdraw a garrison has for execution
Effect ", " linkage ZigBee sensor devices MAC Address ", " linkage data fiducial value " and " linkage data manner of comparison " set up
ZigBee intelligent domestic gateways are downloaded into after.
S2：After setting up scene or linkage execution parameter, then its corresponding execution action command need to be set on APP, used
Device action will be packaged into specific execute instruction and issue loading ZigBee intelligence by APP after the action of family selection relevant device
S3：By after two steps of S1 and S2, scene linkage function is just provided with.When needing to perform scene, user
Only need to click on the corresponding scene button of ZigBee scene devices, then the scene numbering that scene device can click on user at once in
It is sent to ZigBee intelligent domestic gateways；When the ZigBee sensor device status datas for being set to linkage change, will
The MAC Address and sensing data state of current sensor to ZigBee intelligent domestic gateways are reported at once.
S4：ZigBee intelligent domestic gateways receive scene device scene numbering or sensor data after, from it outside
Whole rules of execution conditional parameter one is read and strictly compared by portion's Flash chip, if parameter all meets execution after judging
Condition, then can read corresponding execution action command and be issued to ZigBee control devices, complete user's request.So far, originally
The scene linkage function of groundization is fully completed from setting to triggering.