CN107168259A - The fast synchronization method and device of scene state - Google Patents
The fast synchronization method and device of scene state Download PDFInfo
- Publication number
- CN107168259A CN107168259A CN201710375259.8A CN201710375259A CN107168259A CN 107168259 A CN107168259 A CN 107168259A CN 201710375259 A CN201710375259 A CN 201710375259A CN 107168259 A CN107168259 A CN 107168259A
- Authority
- CN
- China
- Prior art keywords
- state
- scene
- main frame
- switchgear
- key commands
- 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
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
- 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], computer integrated manufacturing [CIM]
- G05B19/41835—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], computer integrated manufacturing [CIM] characterised by programme execution
-
- 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
-
- 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]
Abstract
The invention discloses a kind of fast synchronization method and device of scene state, method includes:Electric and read switch equipment one by one state carries out synchronous first on main frame;Switching devices are registered and set up equipment list;Set up binding table;Set up state table;Judge whether main frame receives key commands, in this way, key commands are parsed and scene number is extracted;Otherwise, proceed to judge;Search the switchgear containing scene number in equipment list;When key commands are Intelligent housing APP scene orders, the state of all switchgears containing scene number is updated according to scenario table;When being switch panel order, the state of correspondence switchgear is updated according to key commands;When being scene panel order, the state of all switchgears containing scene number is updated according to binding table;The state that Intelligent housing APP reads all switchgears from main frame completes synchronous.The state of the quick read switch equipment of energy of the invention and the experience for realizing synchronous enhancing user.
Description
Technical field
The present invention relates to smart home field, the more particularly to a kind of fast synchronization method and device of scene state.
Background technology
In Internet of Things, intelligent domestic system, scene be it is a kind of through frequently with control model, pattern of for example leaving home needs
Realize that light is fully closed, dining pattern needs to open dining room illuminating lamp, and is transferred to suitable brightness etc..When we are from mobile phone A PP
Send after scene order, or during by switch key switch lamp, it would be desirable to the state acquisition of switch is returned to update APP
The state of upper switch, realizes that on off state is synchronous with actual switch state on APP.The side that many APP or gateway are used at present
Method is the method for read switch state one by one, when node is more, it will read the state of equipment one by one, and obtaining a state will
Long time is needed, now just occurs that the state of switchgear updates slower situation, the problem of causing poor user experience.
The content of the invention
The technical problem to be solved in the present invention is that the drawbacks described above for prior art can quickly be read there is provided one kind
The state of switchgear simultaneously realizes synchronization, the fast synchronization method and device of the scene state of the experience of enhancing user.
The technical solution adopted for the present invention to solve the technical problems is:Construct a kind of Fast synchronization side of scene state
Method, applied to intelligent home control system, the intelligent home control system includes main frame, mobile terminal, switch panel and feelings
Intelligent housing APP is installed, the mobile terminal passes through wireless communication mode and main frame on scape panel, the mobile terminal
Communicated, switch panel and the scene panel is connected by one or more route with the main frame, and methods described includes
Following steps:
A) when electric on the main frame, the state of main frame read switch equipment one by one carries out synchronous first;
B) switchgear is registered, equipment list is set up and saves it in the EEPROM of the main frame;
C) set up binding table and save it in the EEPROM of the main frame;
D) set up state table and save it in the RAM of the main frame;
E) judge whether the main frame receives key commands, in this way, the key commands are parsed and scene is extracted
Number, perform step F);Otherwise, the judgement of this step is proceeded;
F the switchgear for containing the scene number in the equipment list) is searched;
Whether be Intelligent housing APP scene order, in this way, according to the scenario table more if G) judging the key commands
The state of new all switchgears containing the scene number, performs step J);Otherwise, step H is performed);
Whether be switch panel order, in this way if H) judging the key commands, updating correspondence according to the key commands opens
The state of equipment is closed, step J is performed);Otherwise, step I is performed);
Whether be scene panel order, in this way if I) judging the key commands, according to the binding table update it is all containing
The state of the switchgear of the scene number, performs step J);Otherwise, step J is performed);
J) state that the Intelligent housing APP disposably reads all switchgears from the main frame completes synchronous;
K once its state) is read to the switchgear without action within each interval time specified, detection is out of order
Node.
The switch that being recorded in the fast synchronization method of scene state of the present invention, in the equipment list has registration is set
Standby ID, the awakening mode of switchgear, scenario table and maximum switchgear number.
In the fast synchronization method of scene state of the present invention, record has binding switchgear in the binding table
Address, the scene number of scene order and binding.
In the fast synchronization method of scene state of the present invention, record has working as switchgear in the state table
Preceding state.
In the fast synchronization method of scene state of the present invention, the interval time is 24 hours.
The invention further relates to a kind of device for the fast synchronization method for realizing above-mentioned scene state, applied to smart home control
System processed, the intelligent home control system includes main frame, mobile terminal, switch panel and scene panel, the mobile terminal
On Intelligent housing APP is installed, the mobile terminal is communicated by wireless communication mode with main frame, the switching surface
Plate and scene panel are connected by one or more route with the main frame, and described device includes:
Synchronization unit first:For when electric on the main frame, the state of main frame read switch equipment one by one is carried out
It is synchronous first;
Equipment list sets up unit:For being registered to the switchgear, set up equipment list and save it in described
In the EEPROM of main frame;
Binding table sets up unit:For setting up binding table and saving it in the EEPROM of the main frame;
State table sets up unit:For setting up state table and saving it in the RAM of the main frame;
Key commands judging unit:For judging whether the main frame receives key commands, in this way, to the key commands
Parsed and extract scene number;Otherwise, proceed to judge;
Switchgear searching unit:Contain the switchgear of the scene number in the equipment list for searching;
Scene command determination unit:For judging whether the key commands are Intelligent housing APP scene orders, such as
It is that the state of all switchgears containing the scene number is updated according to the scenario table;Otherwise, switch panel order is gone to
Judging unit;
Switch panel command determination unit:For judging whether the key commands are switch panel orders, in this way, according to
The key commands update the state of correspondence switchgear;Otherwise, scene panel command determination unit is gone to;
Scene panel command determination unit:For judging whether the key commands are scene panel orders, in this way, according to
The binding table updates the state of all switchgears containing the scene number;Otherwise, go to state and read synchronization unit;
State reads synchronization unit:All open disposably is read for making the Intelligent housing APP from the main frame
The state for closing equipment completes synchronous;
State reads detection unit:For reading one to the switchgear without action within each interval time specified
Its secondary state, detects malfunctioning node.
In device of the present invention, record has the ID of switchgear of registration, switchgear in the equipment list
Awakening mode, scenario table and maximum switchgear number.
In device of the present invention, in the binding table record have the binding address of switchgear, scene order and
The scene number of binding.
In device of the present invention, record has the current state of switchgear in the state table.
In device of the present invention, the interval time is 24 hours.
Implement the fast synchronization method and device of the scene state of the present invention, have the advantages that:Set due to using
Standby table, scenario table and binding table, the state of switchgear is determined according to prior scene, the state of switchgear is directly updated,
After Intelligent housing APP sends scene order, main frame is directly according to the state of the switchgear under the scene more new state
The state of the quick read switch equipment of table, the state without reading switchgear under the scene one by one, therefore energy is simultaneously realized same
Step, the experience of enhancing user.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the fast synchronization method of scene state of the present invention and the flow chart of method in device one embodiment;
Fig. 2 is the structural representation of intelligent home control system in the embodiment;
Fig. 3 is the structural representation of device in the embodiment.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
In the fast synchronization method and device embodiment of scene state of the present invention, the fast synchronization method of the scene state
Flow chart it is as shown in Figure 1.The fast synchronization method of the scene state is applied to intelligent home control system, and Fig. 2 is the intelligence
The structural representation of house control system.In Fig. 2, the intelligent home control system include main frame, mobile terminal, switch panel and
Intelligent housing APP is installed, mobile terminal is led to by wireless communication mode and main frame on scene panel, mobile terminal
News, switch panel and scene panel are connected by one or more route with main frame.
Main frame can be RF equipment, ZIGBEE equipment or ZWAVE equipment, and the number of switch panel and scene panel is many
It is individual, only depict five switch panels and two scene panels in Fig. 2 as an example, switch panel can directly with the main frame
Connection, can also be connected, scene panel directly can be connected with main frame, can also be passed through by another switch panel with main frame
Switch panel is connected with main frame.Switch panel can be the equipment such as socket, light modulator or curtain.Above-mentioned switch panel is referred to out
The switch panel in equipment is closed, scene panel refers to the scene panel on switchgear.
It is noted that in the present embodiment, scene order is down order, for communication protocols such as ZIGBEE, ZWAVE
All it is to be sent with the pattern of broadcast, is routed to by a plurality of up to node, is that this will ensure the communication success of each switchgear
Rate reaches 100%, and the stability of communication needs communication protocol to ensure., if the communication success rate of some nodes is relatively low
Increase routing node.For Star Network, forwarded after being competed using CSMA, forwarding will be abandoned in the specified time.
In Fig. 1, the fast synchronization method of the scene state comprises the following steps:
Step S01 is when electric on main frame, and the state of main frame read switch equipment one by one carries out synchronous first:In this step,
When electric on main frame, the state of main frame read switch equipment one by one is realized synchronous first.
Step S02 switching devices are registered, and are set up equipment list and are saved it in the EEPROM of main frame:This step
In, switching devices are registered, and set up equipment list, and the equipment list is stored in the EEPROM of main frame.The number after power failure
According to can preserve for a long time, record has the ID of the switchgear of registration, the awakening mode of switchgear, scenario table and most in equipment list
Big switchgear number.
In the present embodiment, the source code for setting up equipment list is as follows:
Step S03 sets up binding table and saved it in the EEPROM of main frame:In this step, binding table is set up, and will
The binding table is stored in the EEPROM of main frame, and the binding table is used for the corresponding scene of button for binding scene panel.Binding table
Middle record has the scene number of address, scene order and the binding of binding switchgear.
It is noted that in the present embodiment, scene panel, the key commands of switch panel are to report order, by list
Main frame is reached after bar or a plurality of route, for the order of scene panel, main frame can check binding table, then again using the side of broadcast
Formula sends scene order, and the order of scene panel has to just send after aster Resolution, and otherwise state can step-out.For upper
Order of reporting on one's mission will accomplish the success rate 100% that communicates.
In the present embodiment, the source code for setting up binding table is as follows:
In the present embodiment, Intelligent housing APP needs that scene order is write to the binding table of main frame in advance, passes through intelligence
The process that home control APP writes binding table to main frame is as follows:
(1) Intelligent housing APP is sent out:=999999999, VR# // clear all scene;
(2) main frame is returned:=999999999, y1# // by ensuing command binding to scene 1;
(3) Intelligent housing APP is sent out:=730000172, m10# // key of scene panel 1 is tied to scene 1;
(4) Intelligent housing APP is sent out:=999999999, y2# // by ensuing command binding to scene 2;
(5) Intelligent housing APP is sent out:The button 7 of=730000172, m70# // this scene panel is tied to scene
2, etc..
The content for writing scene order is as follows:
(1) numerical value behind &:1-32 represents 1-32 scene register respectively,!Numerical value below:0-255 is control
Word;
(2) it is 0-63 for 3 circuit switching scenes, control word synthesizes its b5b4 (loop 3) on Intelligent housing APP
B3b2 (loop 2) b1b0 (loop 1), the value in corresponding loop:00=cancels, and 01=is not rewritten, and 10=is opened, and 11=is closed;
For example:=730000172 , &1!63# // fully closed;
For example:=730000172 , &2!42# // standard-sized sheet;
For example:=750000123 , &1!The 10=36 of 36# // control word 10 01 represents only to rewrite the 3rd tunnel to open, the 2nd tunnel
Keep constant, the 1st tunnel does not work.
Step S04 sets up state table and saved it in the RAM of main frame:In this step, set up in state table, state table
Record has the current state of switchgear.The state table is stored in the RAM of main frame, subsequently can be used for the real-time of state table
Update.When pressing the state of some switchgear, the state that main frame monitoring is reported, and state table is updated immediately.For example:Work as feelings
After button on scape panel is pressed, scene number of the main frame in binding table directly updates state table.In addition, when mobile terminal
When Intelligent housing APP sends out the switchgear for specifying scene order write-in by main frame, main frame will record switchgear pair
Answer the state of this scene.
In the present embodiment, the source code for setting up state table is as follows:
Step S05 judges whether main frame receives key commands:In this step, judge whether main frame receives key commands, such as
The result that fruit judges is yes, then performs step S06;Otherwise, the judgement of this step is proceeded.
Step S06 is parsed to key commands and is extracted scene number:If above-mentioned steps S05 judged result is yes,
Then perform this step.In this step, main frame is parsed to key commands, and therefrom extracts scene number.This step has been performed,
Perform step S07.
Step S07 searches the switchgear containing scene number in equipment list:In this step, after scene number is obtained, one by one
Judge whether each switchgear has the scene number, if so, then the state to the switchgear is updated, if not provided,
Then jump to next switchgear to be judged, until finding all containing above-mentioned extracted scene number in equipment list
Switchgear.This step has been performed, step S08 is performed.
Step S08 judges whether key commands are Intelligent housing APP scene orders:In this step, judge that button is ordered
Whether order is Intelligent housing APP scene orders, if it is determined that result be yes, then execution step S09;Otherwise, step is performed
Rapid S10.
Step S09 updates the state of all switchgears containing scene number according to scenario table:If above-mentioned steps S08's
Judged result is yes, then performs this step.In this step, the shape of all switchgears containing scene number is updated according to scenario table
State.This step has been performed, step S14 is performed.
Step S10 judges whether key commands are switch panel orders:If above-mentioned steps S08 judged result is no,
Then perform this step.Whether in this step, it is switch panel order to judge key commands, if it is determined that result be yes, then hold
Row step S11;Otherwise, step S12 is performed.
Step S11 updates the state of correspondence switchgear according to key commands:If above-mentioned steps S10 judged result is
It is then to perform this step.In this step, the state of correspondence switchgear is updated according to key commands.This step has been performed, has been performed
Step S14.
Step S12 judges whether key commands are scene panel orders:If above-mentioned steps S10 judged result is no,
Then perform this step.Whether in this step, it is scene panel order to judge key commands, if it is determined that result be yes, then hold
Row step S13;Otherwise, step S14 is performed.
Step S13 updates the state of all switchgears containing scene number according to binding table:If above-mentioned steps S12 sentences
Disconnected result is yes, then performs this step.In this step, the shape of all switchgears containing scene number is updated according to binding table
State.This step has been performed, step S14 is performed.
The state that step S14 Intelligent housings APP disposably reads all switchgears from main frame completes synchronous:This step
In rapid, the state that Intelligent housing APP disposably reads all switchgears from main frame completes synchronous.
Step S15 reads once its state, detection within each interval time specified to the switchgear without action
Be out of order node:In this step, once its state is read to the switchgear without action within each interval time specified,
So as to detect malfunctioning node.The interval time is 24 hours, certainly, under the certain situation of the present embodiment, the interval time
Can also be other values.
In the present embodiment, when the button of switch panel is pressed, command report to main frame, main frame is according to the order (bag
Containing stateful) content, parsing does well, and then updates state table.When the button of scene panel is pressed, this order is sent
To main frame, Host Detection binding table sends scene order to all switchgears in a broadcast manner if scene is effective.
If the scene order that Intelligent housing APP is sent, then according to scenario table more new state.The method of the present invention is in actual production
Used in product, its cost is relatively low, synchronizing speed is very fast, the lock in time of 200 switchgears is no more than 1 second.Therefore it is of the invention
Method can quick read switch equipment state and realize the experience of synchronous enhancing user.
The present embodiment further relates to a kind of device for the fast synchronization method for realizing above-mentioned scene state, and the device is applied to upper
State intelligent home control system.The structural representation of the device is as shown in Figure 3.In Fig. 3, the device include first synchronization unit 1,
Equipment list, which sets up unit 2, binding table and sets up unit 3, state table and set up unit 4, key commands judging unit 5, switchgear, to be looked into
Unit 6, scene command determination unit 7, switch panel command determination unit 8, scene panel command determination unit 9, state is looked for read
Synchronization unit 10 and state is taken to read detection unit 11;Wherein, synchronization unit 1 is used for when electricity on main frame first, and main frame is one by one
The state of read switch equipment carries out synchronous first;Equipment list is set up unit 2 and registered for switching devices, sets up equipment
Table is simultaneously saved it in the EEPROM of main frame;Record has the ID, switchgear of the switchgear of registration wake-up in equipment list
Pattern, scenario table and maximum switchgear number;Binding table, which sets up unit 3, to be used to set up binding table and saves it in main frame
In EEPROM;Record has the scene number of address, scene order and the binding of binding switchgear in binding table;State table is set up single
Member 4 is used to set up state table and save it in the RAM of main frame;Record has the current state of switchgear in state table.
Key commands judging unit 5 is used to judge whether main frame receives key commands, and in this way, key commands are parsed
And extract scene number;Otherwise, proceed to judge;Switchgear searching unit 6, which is used to search, contains above-mentioned scene in equipment list
Number switchgear;Scene command determination unit 7 is used to judge whether key commands are Intelligent housing APP scene orders,
In this way, the state of all switchgears containing scene number is updated according to scenario table;Otherwise, switch panel command determination list is gone to
Member 8;Switch panel command determination unit 8 is used to judge whether key commands are switch panel orders, in this way, according to key commands
Update the state of correspondence switchgear;Otherwise, scene panel command determination unit 9 is gone to;Scene panel command determination unit 9 is used
In judging whether key commands are scene panel orders, in this way, all switchgears containing scene number are updated according to binding table
State;Otherwise, go to state and read synchronization unit 10;State read synchronization unit 10 be used for make Intelligent housing APP from
The state that main frame disposably reads all switchgears completes synchronous;State, which reads detection unit 11, to be used between each specify
Every reading once its state to the switchgear without action in the time, malfunctioning node is detected.Above-mentioned interval time is 24 small
When, certainly, under the certain situation of the present embodiment, the interval time can also be other values.The device of the present invention can fast fast reading
Take the state of switchgear and realize the experience of synchronous enhancing user.
In a word, in the present embodiment, the state of main frame energy quick obtaining switchgear, it can be reliably achieved descending logical
Letter, and can realize that the fast state unrelated with number of nodes updates, method of the invention quickly, stably can solve smart home
The problem of state of generally existing updates slow.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
God is with principle, and any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.
Claims (10)
1. a kind of fast synchronization method of scene state, it is characterised in that applied to intelligent home control system, the intelligent family
Occupying control system includes being provided with smart home control on main frame, mobile terminal, switch panel and scene panel, the mobile terminal
APP processed, the mobile terminal is communicated by wireless communication mode with main frame, and switch panel and the scene panel passes through one
Bar or a plurality of route are connected methods described with the main frame, comprise the following steps:
A) when electric on the main frame, the state of main frame read switch equipment one by one carries out synchronous first;
B) switchgear is registered, equipment list is set up and saves it in the EEPROM of the main frame;
C) set up binding table and save it in the EEPROM of the main frame;
D) set up state table and save it in the RAM of the main frame;
E) judge whether the main frame receives key commands, in this way, the key commands are parsed and scene number is extracted, held
Row step F);Otherwise, the judgement of this step is proceeded;
F the switchgear for containing the scene number in the equipment list) is searched;
Whether be Intelligent housing APP scene order, in this way if G) judging the key commands, institute is updated according to the scenario table
There is the state of the switchgear containing the scene number, perform step J);Otherwise, step H is performed);
Whether be switch panel order, in this way if H) judging the key commands, updated according to the key commands and inductive switch is set
Standby state, performs step J);Otherwise, step I is performed);
Whether be scene panel order, in this way if I) judging the key commands, updates all containing described according to the binding table
The state of the switchgear of scene number, performs step J);Otherwise, step J is performed);
J) state that the Intelligent housing APP disposably reads all switchgears from the main frame completes synchronous;
K once its state) is read to the switchgear without action within each interval time specified, the section that is out of order is detected
Point.
2. the fast synchronization method of scene state according to claim 1, it is characterised in that there be record in the equipment list
The ID of the switchgear of registration, the awakening mode of switchgear, scenario table and maximum switchgear number.
3. the fast synchronization method of scene state according to claim 1, it is characterised in that there be record in the binding table
Bind the scene number of address, scene order and the binding of switchgear.
4. the fast synchronization method of scene state according to claim 1, it is characterised in that there be record in the state table
The current state of switchgear.
5. the fast synchronization method of the scene state according to Claims 1-4 any one, it is characterised in that between described
It it is 24 hours every the time.
6. a kind of device for the fast synchronization method for realizing scene state as claimed in claim 1, it is characterised in that be applied to
Intelligent home control system, the intelligent home control system includes main frame, mobile terminal, switch panel and scene panel, institute
State and Intelligent housing APP be installed on mobile terminal, the mobile terminal is communicated by wireless communication mode with main frame,
Switch panel and the scene panel is connected by one or more route with the main frame, and described device includes:
Synchronization unit first:For when electric on the main frame, the state of main frame read switch equipment one by one is carried out first
It is synchronous;
Equipment list sets up unit:For being registered to the switchgear, set up equipment list and save it in the main frame
EEPROM in;
Binding table sets up unit:For setting up binding table and saving it in the EEPROM of the main frame;
State table sets up unit:For setting up state table and saving it in the RAM of the main frame;
Key commands judging unit:For judging whether the main frame receives key commands, in this way, the key commands are carried out
Parse and extract scene number;Otherwise, proceed to judge;
Switchgear searching unit:Contain the switchgear of the scene number in the equipment list for searching;
Scene command determination unit:For judging whether the key commands are Intelligent housing APP scene orders, in this way,
The state of all switchgears containing the scene number is updated according to the scenario table;Otherwise, switch panel order is gone to sentence
Disconnected unit;
Switch panel command determination unit:For judging whether the key commands are switch panel orders, in this way, according to described
Key commands update the state of correspondence switchgear;Otherwise, scene panel command determination unit is gone to;
Scene panel command determination unit:For judging whether the key commands are scene panel orders, in this way, according to described
Binding table updates the state of all switchgears containing the scene number;Otherwise, go to state and read synchronization unit;
State reads synchronization unit:Set for making the Intelligent housing APP disposably read all switches from the main frame
Standby state completes synchronous;
State reads detection unit:For reading once it to the switchgear without action within each interval time specified
State, detects malfunctioning node.
7. the device of the fast synchronization method according to claim 6 for realizing scene state as claimed in claim 1, its
It is characterised by, record has ID, the awakening mode of switchgear, scenario table and the maximum of the switchgear of registration in the equipment list
Switchgear number.
8. the device of the fast synchronization method according to claim 6 for realizing scene state as claimed in claim 1, its
It is characterised by, record has the scene number of address, scene order and the binding of binding switchgear in the binding table.
9. the device of the fast synchronization method according to claim 6 for realizing scene state as claimed in claim 1, its
It is characterised by, record has the current state of switchgear in the state table.
10. the Fast synchronization for realizing scene state as claimed in claim 1 according to claim 6 to 9 any one
The device of method, it is characterised in that the interval time is 24 hours.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710375259.8A CN107168259B (en) | 2017-05-24 | 2017-05-24 | The fast synchronization method and device of scene state |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710375259.8A CN107168259B (en) | 2017-05-24 | 2017-05-24 | The fast synchronization method and device of scene state |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107168259A true CN107168259A (en) | 2017-09-15 |
CN107168259B CN107168259B (en) | 2019-06-04 |
Family
ID=59821901
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710375259.8A Active CN107168259B (en) | 2017-05-24 | 2017-05-24 | The fast synchronization method and device of scene state |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107168259B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110505614A (en) * | 2019-08-30 | 2019-11-26 | 青岛海信智慧家居系统股份有限公司 | A kind of communication means and device of ZigBee binding switch |
CN110908291A (en) * | 2019-10-17 | 2020-03-24 | 珠海格力电器股份有限公司 | Intelligent home scene control system, control method and control device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1582079A (en) * | 2003-08-15 | 2005-02-16 | 珠海爱圣特电子科技有限公司 | Scene lighting system and its control method |
CN103078774A (en) * | 2013-01-29 | 2013-05-01 | Tcl集团股份有限公司 | Home scene control method and device |
CN104407592A (en) * | 2014-11-27 | 2015-03-11 | 小米科技有限责任公司 | Method and device for regulating running state of smart home device |
CN104820371A (en) * | 2015-05-23 | 2015-08-05 | 深圳市尚吉电子有限公司 | Method for realizing scene function of Zigbee smart home terminal device |
WO2015150927A1 (en) * | 2014-04-02 | 2015-10-08 | Koninklijke Philips N.V. | Methods for initiating state machines in response to touch events detected at home appliances |
CN106094941A (en) * | 2016-06-21 | 2016-11-09 | 杭州鸿雁电器有限公司 | A kind of method and system changing indoor scene |
-
2017
- 2017-05-24 CN CN201710375259.8A patent/CN107168259B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1582079A (en) * | 2003-08-15 | 2005-02-16 | 珠海爱圣特电子科技有限公司 | Scene lighting system and its control method |
CN103078774A (en) * | 2013-01-29 | 2013-05-01 | Tcl集团股份有限公司 | Home scene control method and device |
WO2015150927A1 (en) * | 2014-04-02 | 2015-10-08 | Koninklijke Philips N.V. | Methods for initiating state machines in response to touch events detected at home appliances |
CN104407592A (en) * | 2014-11-27 | 2015-03-11 | 小米科技有限责任公司 | Method and device for regulating running state of smart home device |
CN104820371A (en) * | 2015-05-23 | 2015-08-05 | 深圳市尚吉电子有限公司 | Method for realizing scene function of Zigbee smart home terminal device |
CN106094941A (en) * | 2016-06-21 | 2016-11-09 | 杭州鸿雁电器有限公司 | A kind of method and system changing indoor scene |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110505614A (en) * | 2019-08-30 | 2019-11-26 | 青岛海信智慧家居系统股份有限公司 | A kind of communication means and device of ZigBee binding switch |
CN110505614B (en) * | 2019-08-30 | 2022-03-22 | 青岛海信智慧家居系统股份有限公司 | Communication method and device of ZigBee binding switch |
CN110908291A (en) * | 2019-10-17 | 2020-03-24 | 珠海格力电器股份有限公司 | Intelligent home scene control system, control method and control device |
Also Published As
Publication number | Publication date |
---|---|
CN107168259B (en) | 2019-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103280894B (en) | Power distribution network control application network topology automatic identifying method | |
CN108037675A (en) | A kind of Intelligent household scene control method based on ZigBee Group | |
CN202166887U (en) | Distribution type control system based on internet of things | |
EP3125509A1 (en) | Application information sharing method and apparatus | |
CN103345211A (en) | Intelligent home control system and control method | |
CN103475703A (en) | Intelligent home equipment control method based on ZigBee network | |
CN109799716B (en) | Scene pushing method and device and intelligent home system | |
CN104808559A (en) | Wireless switch control method, system and related equipment | |
CN102891796A (en) | Mining intelligent transmission gateway | |
CN107168259A (en) | The fast synchronization method and device of scene state | |
CN105554694A (en) | Method for controlling Bluetooth intelligent device by utilizing Bluetooth Beacon broadcast | |
CN110136708A (en) | A kind of distributed sound control system and control method based on bluetooth Mesh | |
CN104954214B (en) | Improve the method and system of RS485 communication autgmentabilities | |
CN101834772A (en) | Ethernet ring network-based media access control address sorting method and device | |
CN102437921B (en) | Memory method and network device of configuration information | |
CN110456719A (en) | Method of controlling switch, switchgear and control system | |
CN110471300A (en) | A kind of conflict coordination method and system of more intelligent scenes | |
CN113990324A (en) | Voice intelligent home control system | |
CN106102266A (en) | underground garage lighting energy-saving control system | |
CN105867154A (en) | Device and system for controlling home device network | |
CN110149398B (en) | User management method for intelligent door lock of intelligent home | |
CN109714741A (en) | Bluetooth repeaters, smart lock, intelligent lock system and network-building method | |
CN113115282B (en) | Thing communication method and system | |
CN106027339B (en) | The monitoring method of household appliance, apparatus and system | |
CN112820273B (en) | Wake-up judging method and device, storage medium and electronic equipment |
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 |