CN102323803B - Intelligent home control method and system - Google Patents

Intelligent home control method and system Download PDF

Info

Publication number
CN102323803B
CN102323803B CN201110151990.5A CN201110151990A CN102323803B CN 102323803 B CN102323803 B CN 102323803B CN 201110151990 A CN201110151990 A CN 201110151990A CN 102323803 B CN102323803 B CN 102323803B
Authority
CN
China
Prior art keywords
control
slave
main frame
data
service processes
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.)
Expired - Fee Related
Application number
CN201110151990.5A
Other languages
Chinese (zh)
Other versions
CN102323803A (en
Inventor
张晓红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Digital Technology Shenzhen Co Ltd
Original Assignee
TCL Digital Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Digital Technology Shenzhen Co Ltd filed Critical TCL Digital Technology Shenzhen Co Ltd
Priority to CN201110151990.5A priority Critical patent/CN102323803B/en
Publication of CN102323803A publication Critical patent/CN102323803A/en
Application granted granted Critical
Publication of CN102323803B publication Critical patent/CN102323803B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

The invention discloses an intelligent home control method and system. Because an intelligent home control terminal is divided into one host machine and a plurality of auxiliary machines, with the host machine as a center, all the auxiliary machines are in direct communicating connection with the host machine, and the host machine is used for carrying out actual control on home equipment through a control procedure and actively synchronizing data to all the auxiliary machines after the actual control is finished; when the auxiliary machines are used for controlling the home equipment, an asynchronous mode is adopted for the control procedure, a control command is transmitted to the host machine, and the host machine is used for carrying out actual control after receiving the control command; the host computer is used for actively synchronizing data to all the auxiliary machines after successful control; and the intelligent home control method and system have the following effects that: only by directly connecting the host machine, lighting equipment, safety protection equipment and other equipment, can the defects of difficulty in wiring of the auxiliary machines, and the like be effectively avoided; the host machine is used as core, and all the auxiliary machines are same in status, therefore independence of the auxiliary machines can be realized, the defect of difficulty in wiring of the auxiliary machines is overcome, and any number of auxiliary machines can be expanded without correcting software; in addition, because an asynchronous mode is adopted in the control of the auxiliary machines, the situation that a user cannot perform interface operation due to long-term waiting for a result from the host machine is avoided.

Description

A kind of intelligent home furnishing control method and system
Technical field
The present invention relates to Smart Home control technology field, in particular a kind of intelligent home furnishing control method and system.
Background technology
Smart Home is take house as platform, utilize comprehensive wiring technology, the network communications technology, Design for Smart Home System scheme security precautions technology, automatic control technology, audio frequency and video technology by integrated facility relevant life staying idle at home, build the management system of efficient house facility and family's schedule affairs, promote house security, convenience, comfortableness, artistry, and realize the living environment of environmental protection and energy saving.
Along with improving constantly of scientific and technological development and people's living standard, the use of home furnishings intelligent terminal device is more and more universal, an intelligent terminal more and more can not meet the demand of family, more room needs intelligent terminal, such as all light unitses of family can be controlled in each room, such as not needing to go to parlor, to visitor, open the door etc.
What general intelligent terminal was taked at present is that main frame and slave have the setting of equal control to terminal device, thereby brought, takies too much bandwidth, and difficult wiring, need to repeatedly revise the shortcomings such as host software.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
The technical problem to be solved in the present invention is, for the above-mentioned defect of prior art, a kind of intelligent home furnishing control method and system are provided, this method provides a kind of control method realizing by " process ", the method can: realize minimum occupied bandwidth, to greatest extent support more intelligent terminals, improved the control efficiency to Smart Home, reduce slave difficult wiring shortcoming, can expand any number of slaves and not need to revise software compatible mutually to realize major-minor machine.Slave control adopts asynchronous system, avoids user can not carry out interface operation because waiting as long for main frame result,
The technical scheme that technical solution problem of the present invention adopts is as follows:
A kind of intelligent home furnishing control method, wherein, comprises step:
A, home furnishings intelligent control terminal is divided into a main frame, many slaves; Centered by main frame, each slave is connected with host communication, and main frame is connected with background server and each home equipment communication respectively;
After B, main frame, slave start, to background server, register IP address information separately respectively; The IP address storage of the each slave of main frame automatic acquisition, each slave is obtained the IP address storage of main frame; And control slave and start shooting all from the synchronous latest data of main frame at every turn;
C, main frame carry out the working control to home equipment by control process, and after control, active synchronization data are on all slaves, and all slaves are by more new state data of control process;
D, when slave control home equipment, by control process, adopt asynchronous system, send control command to main frame, main frame carries out working control after receiving control command; Slave is proceeded other control operation, after host computer control success active synchronization data on all slaves, more new state data of all slaves.
Described intelligent home furnishing control method, wherein, the each start of slave in described step B all specifically comprises from the synchronous latest data of main frame:
Control process in B1, slave is sent and is obtained data-message to the TCP service processes in slave by inter-process messages;
TCP service processes in B2, slave obtains this data-message and sends to the TCP service processes on main frame by ICP/IP protocol;
TCP service processes on B3, main frame obtains data-message and sends to the control process of main frame by this;
The control process of B4, main frame is returned to up-to-date control data to the TCP service processes on main frame;
TCP service processes on B5, main frame sends to the TCP service processes in slave by these up-to-date control data by ICP/IP protocol;
TCP service processes in B6, slave by up-to-date control Data Update in database;
B7, each slave send Data Update message according to the control process updating to separately of its database;
Control process in B8, slave more returns to the TCP service processes in slave by inter-process messages after new data.
Described intelligent home furnishing control method, wherein, described step C specifically comprises:
C1, main frame carry out the working control to home equipment by control process, up-to-date control data are sent to the TCP service processes of main frame after controlling successfully by the control process of main frame;
The TCP service processes of C2, main frame sends to up-to-date control data the TCP service processes of slave by ICP/IP protocol;
TCP service processes in C3, each slave by up-to-date control Data Update in database;
C4, each slave send Data Update message according to the control process updating to separately of its database;
The control process of C5, each slave is according to the Data Update message user interface receiving.
Described intelligent home furnishing control method, wherein, described step D specifically comprises:
The control process of D1, slave sends the TCP service processes of control command message to slave;
The TCP service processes of D2, slave produces corresponding control protocol according to this control command, adopts asynchronous system this control protocol to be sent to the TCP service processes of main frame;
D3, slave, after this control protocol message is sent completely, are proceeded other control operation;
The TCP service processes of D4, main frame sends the control process of this control command message to main frame, carries out the working control to home equipment;
D5, when controlling successfully, the control process of main frame is preserved more new data new user interface more;
D6, by the control process of main frame, up-to-date control data are sent to the TCP service processes of main frame;
The TCP service processes of D7, main frame produces up-to-date control protocol according to these up-to-date control data, and these up-to-date control protocol data is sent to the TCP service processes of each slave by ICP/IP protocol;
TCP service processes in D8, each slave by up-to-date control Data Update in database
D9, each slave send Data Update message according to the control process updating to separately of its database;
The control process of D10, each slave is according to the Data Update message user interface receiving.
Described intelligent home furnishing control method, wherein, described TCP service processes has been used for the socket communication function between main frame and slave.
A kind of intelligent home control system, wherein, comprises a main frame, many slaves, and each slave is connected with host communication, and main frame is connected with background server and each home equipment communication respectively; Main frame, slave start are registered IP address information separately to background server respectively; The IP address storage of the each slave of main frame automatic acquisition, the IP address storage that slave is obtained main frame;
Wherein, described main frame is on the one hand for directly each home equipment being controlled, and the operational order that receives user carries out the working control to home equipment by control process, and after control, active synchronization data are on all slaves; The control command of sending for receiving slave on the other hand, and home equipment is carried out to working control according to this control command, control successfully after active synchronization data on all slaves;
Described slave is on the one hand for start shooting all from the synchronous latest data of main frame at every turn, by control process, adopt asynchronous system on the other hand, send control command to main frame, by main frame, receive this control command and complete the control to home equipment, and at the host computer control success synchrodata of Receiving Host afterwards, the more each status data of new data.
Described intelligent home control system, wherein, described slave comprises:
The first transmitting element, sends and obtains data-message to the TCP service processes in slave for the control process by slave,
The second transmitting element, obtains this data-message and sends to the TCP service processes on main frame by ICP/IP protocol for the TCP service processes by slave;
Data updating unit, for the TCP service processes by slave by up-to-date control Data Update to database; And by more new user interface of control process;
Notification unit, utilizes the control process in inter-process messages notice slave for the TCP service processes by slave by this Data Update;
Return to unit, for the control process when in slave, more after new data, by inter-process messages, return to the TCP service processes in slave;
Described main frame comprises:
The 3rd transmitting element, obtains data-message and sends to the control process of main frame for the TCP service processes by main frame by this;
The 4th transmitting element, returns to up-to-date control data to the TCP service processes on main frame for the control process by main frame;
The 5th transmitting element, produces up-to-date control protocol for the TCP service processes by main frame according to these up-to-date control data, and these up-to-date control protocol data is sent to the TCP service processes of each slave by ICP/IP protocol.
Described intelligent home control system, wherein, described main frame also comprises:
The first main control unit, for the working control of carrying out to home equipment by control process, sends to up-to-date control data the TCP service processes of main frame by the control process of main frame after controlling successfully;
Described intelligent home control system, wherein, described slave also comprises:
First controls transmitting element, for the control process by slave, sends the TCP service processes of control command message to slave;
Second controls transmitting element, for the TCP service processes by slave, according to this control command, produces corresponding control protocol, adopts asynchronous system this control protocol to be sent to the TCP service processes of main frame; And after this control command message is sent completely, proceed other control operation.
Described intelligent home control system, wherein, described main frame also comprises:
The second main control unit, the control command message of sending for receiving slave, and this control command message is sent to the control process of main frame by TCP service processes, carry out the working control to home equipment;
Data and interface updating block, control successfully for working as, by more new data and the user interface of control process of main frame.
Intelligent home furnishing control method provided by the present invention and system, be divided into a main frame, many slaves owing to having adopted by home furnishings intelligent control terminal; Centered by main frame, each slave is connected with main frame Direct Communication, main frame is connected with background server and each home equipment communication respectively, main frame carries out the working control to home equipment by control process, after control, active synchronization data are on all slaves, and all slaves are by more new state data of control process; When slave control home equipment, by control process, adopt asynchronous system, send control command to main frame, main frame carries out working control after receiving control command; Slave is proceeded other control operation, after host computer control success, active synchronization data are on all slaves, more new state data of all slaves, can reach following effect: 1) only have main frame and light, the equipment such as security protection are directly connected, and can effectively avoid like this shortcomings such as slave difficult wiring; 2) take main frame as core, each slave status is identical, can realize like this slave independence, reduce slave difficult wiring shortcoming, can expand any number of slaves and not need to revise software so that major-minor machine compatibility, and slave control adopts asynchronous system, avoids user can not carry out interface operation because waiting as long for main frame result.
Accompanying drawing explanation
Fig. 1 is the intelligent home furnishing control method process flow diagram of the embodiment of the present invention.
Fig. 2 is the intelligent home control system syndeton schematic diagram of the embodiment of the present invention.
Fig. 3 is that the slave start of the embodiment of the present invention is from the process flow diagram of the synchronous latest data of main frame.
Fig. 4 is that the main frame of the embodiment of the present invention initiatively upgrades slave data flowchart.
Fig. 5 is the host computer control process flow diagram of the embodiment of the present invention.
Fig. 6 is the slave control scene process flow diagram of the embodiment of the present invention.
Fig. 7 is the inner theory diagram of the slave of the embodiment of the present invention.
Fig. 8 is the inner theory diagram of the main frame of the embodiment of the present invention.
Embodiment
A kind of intelligent home furnishing control method provided by the present invention and system, for making object of the present invention, technical scheme and advantage clearer, clear and definite, referring to accompanying drawing, developing simultaneously, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
A kind of intelligent home furnishing control method that the embodiment of the present invention provides, the main control method realizing by " process ", " process " is one and has the program of certain standalone feature about the once operation activity of certain data acquisition.It is the elementary cell of operating system Dynamic Execution, and in traditional operating system, process is basic allocation units, is also basic performance element.
As shown in Figure 1 and Figure 2, the intelligent home furnishing control method of the embodiment of the present invention mainly comprises the following steps:
Step S100, is divided into a main frame 11 by home furnishings intelligent control terminal 10, many slaves 12; Centered by main frame 11, each slave 12 is connected with main frame 11 communications, and main frame 11 is connected with background server 14 and 13 communications of each home equipment respectively.
Described home equipment comprises the equipment such as light, security protection, in the present embodiment, centered by main frame 11, only has main frame to be directly connected with home equipments such as light, security protections.
Step S200, registers IP address information separately to background server respectively after main frame, slave start; The IP address storage of the each slave of main frame automatic acquisition, each slave is obtained the IP address storage of main frame; And control slave and start shooting all from the synchronous latest data of main frame at every turn.
Step S300, main frame carries out the working control to home equipment by control process, and after control, active synchronization data are on all slaves, and all slaves are by more new state data of control process;
For example, during the home equipments such as each host computer control light, by control process, carry out the working control to home equipment, after control, active synchronization data are on all slaves, and all slaves are the data such as new state more; Above everything all completes by process.
Step S400, when slave control home equipment, adopts asynchronous system by control process, sends control command to main frame, and main frame carries out working control after receiving control command; Slave is proceeded other control operation, after host computer control success active synchronization data on all slaves, more new state data of all slaves.
For example, during the home equipments such as each slave control light, adopt asynchronous system, send control command to main frame, main frame carries out working control after receiving control command; Now, slave does not need to wait for that main frame returns results (user can carry out other interface operation), can active synchronization data after host computer control success on all slaves, all slaves are the data such as new state more; Above everything all completes by process.
The intelligent home furnishing control method of embodiment mainly comprises that the data of 4 scenes are synchronous, and take light control data, synchronously as example, the present invention is described in further detail below.
The first scene: data are obtained in slave start, and in the present embodiment, the each start of slave all need be from the synchronous latest data of main frame, and referring to Fig. 3, detailed process is as follows:
Control process (as light control process) in B1, slave is sent and is obtained data-message to the TCP service processes in slave by inter-process messages; The control process of slave sends obtains data-message Query_All_Data to the TCP SERVER in slave (TCP service, is called for short TS) process, for inquiring about all data of main frame.Wherein, described TCP service (TS) process has been used for the socket communication function between main frame and slave.In socket communication, mainly contain UDP and two kinds of communication protocols of TCP.And http communication only relates to Transmission Control Protocol.
TCP in B2, slave service (TS) process is obtained this data-message and is sent to the TCP service processes on main frame by ICP/IP protocol; If send overtimely, create thread and continue to obtain.
TCP service processes on B3, main frame obtains data-message and sends to the control process of main frame by this; This message Query_All_Data that obtains that is used for inquiring about all data of main frame comprises inquiry home equipment information (Query_Scene), inquiry probe apparatus information (Query_Sensor_Type).
The control process of B4, main frame is returned to up-to-date control data to the TCP service processes on main frame; This returns to up-to-date control data and comprises: reply home equipment information (Answer_Scene), reply probe apparatus information (Answer_Sensor_Type).
TCP service processes on B5, main frame sends to the TCP service processes in slave by these up-to-date control data by ICP/IP protocol;
TCP service processes in B6, slave by up-to-date control Data Update in database;
B7, each slave send Data Update message according to the control process updating to separately of its database; Comprise and control the more new data such as home equipment (Scene_Control), control probe (ActSensor_Type), device data renewal (devdata_update).And obtain Data Update (UI) user interface.
Control process in B8, slave more returns to the TCP service processes in slave by inter-process messages after new data.For example return and reply home equipment control (Rsp_for_Scene_Control) and reply probe and control (Rsp_for_ActSensor_Type) data etc.
The second scene, main frame completes after control, and active synchronization data are on all slaves, referring to Fig. 4.
B21, host computer control process send second and obtain data-message to the TS process on main frame (TCP SERVER process), and second of this place obtains data-message and comprises control home equipment (Scene_Control), controls probe (ActSensor_Type), device information update (devdata_update) data-message.
B22. the TS process on main frame forwards this by ICP/IP protocol and second obtains data-message to the TS process in slave, and slave second is obtained this data-message and is saved in database.
B23. slave is preserved this and second is obtained after data-message, by the TS process in slave, send Data Update message to slave control process, comprise data such as controlling home equipment (Scene_Control), control probe (ActSensor_Type), device information update (devdata_update).
B24, slave control process are got the data such as control home equipment (Scene_Control), the control of above-mentioned steps B23 are popped one's head in (ActSensor_Type), device information update (devdata_update), upgrade UI interface.
B25, return to updating message, as, reply home equipment control (Rsp_for_Scene_Control), reply probe and control (Rsp_for_ActSensor_Type).
The third scene, host computer control flow process, referring to Fig. 5, mainly comprise the following steps:
C1, main frame carry out the working control to home equipment by control process, control successfully after control process by main frame up-to-date control data are sent to TCP service (TS) process of main frame; For example, control home equipment (Scene_Control) and control the control data etc. of pop one's head in (ActSensor_Type).
The TCP service processes of C2, main frame produces up-to-date control protocol according to these up-to-date control data, and these up-to-date control protocol data is sent to the TCP service processes of each slave by ICP/IP protocol;
TCP service processes in C3, each slave is preserved up-to-date control data to be updated in database;
C4, each slave send Data Update message according to the control process updating to separately of its database; Send the control process of Data Update message to slave.This Data Update message can comprise the updating message of controlling home equipment (Scene_Control) and controlling probe (ActSensor_Type).
The control process of C5, slave is got and is upgraded Data Update UI(user interface), and return and reply accordingly the TC process of control message to slave, as returned, reply home equipment control (Rsp_for_Scene_Control), reply the TS process of the message such as probe control (Rsp_for_ActSensor_Type) to slave.
The 4th kind of scene, slave control scene flow process, referring to Fig. 6, mainly comprise the following steps:
The control process of D1, slave sends the TCP service processes of control command message to slave; This control command message comprises the command messages of control home equipment (Scene_Control) and control probe (ActSensor_Type) etc.
The TCP service processes of D2, slave produces corresponding control protocol according to this control command, and adopts asynchronous system this control protocol to be sent to the TCP service processes of main frame.Slave, after this control protocol message is sent completely, need to wait as long for main frame at this interface and return results, and user can carry out other interface operation by this slave.
The TCP service processes transmission state updating message of D3, main frame and above-mentioned control command message, to the control process of main frame, are carried out the working control to home equipment; When controlling successfully, the control process of main frame is preserved more new data more new user interface (UI);
D4, the control process by main frame send to up-to-date control data the TS(TCP service of main frame) process; As control home equipment (Scene_Control) and control probe (ActSensor_Type) control data.
The TCP service processes of D5, main frame produces up-to-date control protocol according to these up-to-date control data, and these up-to-date control protocol data being sent to the TCP service processes of each slave by ICP/IP protocol, give slave 1, slave 2 as shown in Figure 6 send control protocol.
TCP service processes in D6, each slave by up-to-date control Data Update in database;
D7, each slave send Data Update message according to the control process updating to separately of its database; As shown in Figure 6, the TS process of slave 1, the slave 2 slave control process separately of giving sends Data Update message, and the Data Update message at this place can comprise: the Data Update of controlling home equipment (Scene_Control) and control probe (ActSensor_Type).
The control process of D8, each slave is according to the Data Update message user interface receiving.
Therefore, the intelligent home furnishing control method of the embodiment of the present invention, by the many station terminals that adopt each family, be divided into major-minor machine, a main frame, many slaves. centered by main frame, only have main frame and light, the equipment such as security protection are directly connected, and realize control by process, and reduce slave difficult wiring shortcoming, can expand any number of slaves and not need to revise software compatible mutually to realize major-minor machine.Slave control adopts asynchronous system, avoids user can not carry out interface operation because waiting as long for main frame result.
Based on above-described embodiment, the embodiment of the present invention also provides a kind of intelligent home control system, as shown in Figure 2, mainly comprise a main frame 11, many slaves 12, each slave 12 is connected with main frame 11 communications, and main frame 11 is connected with background server 14 and 13 communications of each home equipment respectively; Main frame 11, slave 12 are started shooting and to background server, are registered IP address information separately respectively; The IP address storage of the each slave of main frame automatic acquisition, the IP address storage that slave is obtained main frame;
Wherein, described main frame 11 is on the one hand for directly each home equipment being controlled, and the operational order that receives user carries out the working control to home equipment by control process, and after control, active synchronization data are on all slaves; The control command of sending for receiving slave on the other hand, and home equipment is carried out to working control according to this control command, control successfully after active synchronization data on all slaves; As detailed above.
Described slave 12 is on the one hand for start shooting all from the synchronous latest data of main frame at every turn, by control process, adopt asynchronous system on the other hand, send control command to main frame, by main frame, receive this control command and complete the control to home equipment, and in the host computer control success synchrodata of Receiving Host afterwards, the more each status data of new data, as detailed above.
As Fig. 7, described slave 12 comprises:
The first transmitting element 121, sends and obtains data-message to the TCP service processes in slave for the control process by slave.
The second transmitting element 122, obtains this data-message and sends to the TCP service processes on main frame by ICP/IP protocol for the TCP service processes by slave.
Data updating unit 123, for the TCP service processes by slave by up-to-date control Data Update to database; And by more new user interface of control process.
Notification unit 124, utilizes the control process in inter-process messages notice slave for the TCP service processes by slave by this Data Update.
Return to unit 125, for the control process when in slave, more after new data, by inter-process messages, return to the TCP service processes in slave.
First controls transmitting element 126, for the control process by slave, sends the TCP service processes of control command message to slave.
Second controls transmitting element 127, for the TCP service processes by slave, according to this control command, produces corresponding control protocol, adopts asynchronous system this control protocol to be sent to the TCP service processes of main frame; And after this control command message is sent completely, proceed other control operation.
As shown in Figure 8, described main frame 11 comprises:
The 3rd transmitting element 111, obtains data-message and sends to the control process of main frame for the TCP service processes by main frame by this;
The 4th transmitting element 112, returns to up-to-date control data to the TCP service processes on main frame for the control process by main frame;
The 5th transmitting element 113, sends to TCP service processes slave in by these up-to-date control data by ICP/IP protocol for the TCP service processes by main frame.
The first main control unit 114, for the working control of carrying out to home equipment by control process, sends to up-to-date control data the TCP service processes of main frame by the control process of main frame after controlling successfully;
The second main control unit 115, the control command message of sending for receiving slave, and this control command message is sent to the control process of main frame by TCP service processes, carry out the working control to home equipment;
Data and interface updating block 116, control successfully for working as, by more new data and the user interface of control process of main frame.
In sum, intelligent home furnishing control method provided by the present invention and system, be divided into a main frame, many slaves owing to having adopted by home furnishings intelligent control terminal; Centered by main frame, each slave is connected with main frame Direct Communication, main frame is connected with background server and each home equipment communication respectively, main frame carries out the working control to home equipment by control process, after control, active synchronization data are on all slaves, and all slaves are by more new state data of control process; When slave control home equipment, by control process, adopt asynchronous system, send control command to main frame, main frame carries out working control after receiving control command; Slave is proceeded other control operation, after host computer control success, active synchronization data are on all slaves, more new state data of all slaves, can reach following effect: 1) only have main frame and light, the equipment such as security protection are directly connected, and can effectively avoid like this shortcomings such as slave difficult wiring; 2) take main frame as core, each slave status is identical, can realize like this slave independence, reduce slave difficult wiring shortcoming, can expand any number of slaves and not need to revise software so that major-minor machine compatibility, and slave control adopts asynchronous system, avoids user can not carry out interface operation because waiting as long for main frame result.
Should be understood that, application of the present invention is not limited to above-mentioned giving an example, and for those of ordinary skills, can be improved according to the above description or convert, and all these improvement and conversion all should belong to the protection domain of claims of the present invention.

Claims (10)

1. an intelligent home furnishing control method, is characterized in that, comprises step:
A, home furnishings intelligent control terminal is divided into a main frame, many slaves; Centered by main frame, each slave is connected with host communication, and main frame is connected with background server and each home equipment communication respectively;
After B, main frame, slave start, to background server, register IP address information separately respectively; The IP address storage of the each slave of main frame automatic acquisition, each slave is obtained the IP address storage of main frame; And control slave and start shooting all from the synchronous latest data of main frame at every turn;
C, main frame carry out the working control to home equipment by control process, and after control, active synchronization data are on all slaves, and all slaves are by more new state data of control process;
D, when slave control home equipment, by control process, adopt asynchronous system, send control command to main frame, main frame carries out working control after receiving control command; Slave is proceeded other control operation, after host computer control success active synchronization data on all slaves, more new state data of all slaves.
2. intelligent home furnishing control method according to claim 1, is characterized in that, the each start of slave in described step B all specifically comprises from the synchronous latest data of main frame:
Control process in B1, slave is sent and is obtained data-message to the TCP service processes in slave by inter-process messages;
TCP service processes in B2, slave obtains this data-message and sends to the TCP service processes on main frame by ICP/IP protocol;
TCP service processes on B3, main frame obtains data-message and sends to the control process of main frame by this;
The control process of B4, main frame is returned to up-to-date control data to the TCP service processes on main frame;
TCP service processes on B5, main frame sends to the TCP service processes in slave by these up-to-date control data by ICP/IP protocol;
TCP service processes in B6, slave by up-to-date control Data Update in database;
B7, each slave send Data Update message according to the control process updating to separately of its database;
Control process in B8, slave more returns to the TCP service processes in slave by inter-process messages after new data.
3. intelligent home furnishing control method according to claim 1, is characterized in that, described step C specifically comprises:
C1, main frame carry out the working control to home equipment by control process, up-to-date control data are sent to the TCP service processes of main frame after controlling successfully by the control process of main frame;
The TCP service processes of C2, main frame sends to up-to-date control data the TCP service processes of slave by ICP/IP protocol;
TCP service processes in C3, each slave by up-to-date control Data Update in database;
C4, each slave send Data Update message according to the control process updating to separately of its database;
The control process of C5, each slave is according to the Data Update message user interface receiving.
4. intelligent home furnishing control method according to claim 1, is characterized in that, described step D specifically comprises:
The control process of D1, slave sends the TCP service processes of control command message to slave;
The TCP service processes of D2, slave produces corresponding control protocol according to this control command, adopts asynchronous system this control protocol to be sent to the TCP service processes of main frame;
D3, slave, after this control protocol message is sent completely, are proceeded other control operation;
The TCP service processes of D4, main frame sends the control process of this control command message to main frame, carries out the working control to home equipment;
D5, when controlling successfully, the control process of main frame is preserved more new data new user interface more;
D6, by the control process of main frame, up-to-date control data are sent to the TCP service processes of main frame;
The TCP service processes of D7, main frame produces up-to-date control protocol according to these up-to-date control data, and these up-to-date control protocol data is sent to the TCP service processes of each slave by ICP/IP protocol;
TCP service processes in D8, each slave by up-to-date control Data Update in database;
D9, each slave send Data Update message according to the control process updating to separately of its database;
The control process of D10, each slave is according to the Data Update message user interface receiving.
5. according to the intelligent home furnishing control method described in claim 2 or 3 or 4, it is characterized in that, described TCP service processes has been used for the socket communication function between main frame and slave.
6. an intelligent home control system, is characterized in that, comprises a main frame, many slaves, and each slave is connected with host communication, and main frame is connected with background server and each home equipment communication respectively; Main frame, slave start are registered IP address information separately to background server respectively; The IP address storage of the each slave of main frame automatic acquisition, the IP address storage that slave is obtained main frame;
Wherein, described main frame is on the one hand for directly each home equipment being controlled, and the operational order that receives user carries out the working control to home equipment by control process, and after control, active synchronization data are on all slaves; The control command of sending for receiving slave on the other hand, and home equipment is carried out to working control according to this control command, control successfully after active synchronization data on all slaves;
Described slave is on the one hand for start shooting all from the synchronous latest data of main frame at every turn, by control process, adopt asynchronous system on the other hand, send control command to main frame, by main frame, receive this control command and complete the control to home equipment, and at the host computer control success synchrodata of Receiving Host afterwards, the more each status data of new data.
7. intelligent home control system according to claim 6, is characterized in that, described slave comprises:
The first transmitting element, sends and obtains data-message to the TCP service processes in slave for the control process by slave;
The second transmitting element, obtains this data-message and sends to the TCP service processes on main frame by ICP/IP protocol for the TCP service processes by slave;
Data updating unit, for the TCP service processes by slave by up-to-date control Data Update to database; And by more new user interface of control process;
Notification unit, utilizes the control process in inter-process messages notice slave for the TCP service processes by slave by this Data Update;
Return to unit, for the control process when in slave, more after new data, by inter-process messages, return to the TCP service processes in slave;
Described main frame comprises:
The 3rd transmitting element, obtains data-message and sends to the control process of main frame for the TCP service processes by main frame by this;
The 4th transmitting element, returns to up-to-date control data to the TCP service processes on main frame for the control process by main frame;
The 5th transmitting element, produces up-to-date control protocol for the TCP service processes by main frame according to these up-to-date control data, and these up-to-date control protocol data is sent to the TCP service processes of each slave by ICP/IP protocol.
8. intelligent home control system according to claim 6, is characterized in that, described main frame also comprises:
The first main control unit, for the working control of carrying out to home equipment by control process, sends to up-to-date control data the TCP service processes of main frame by the control process of main frame after controlling successfully.
9. intelligent home control system according to claim 6, is characterized in that, described slave also comprises:
First controls transmitting element, for the control process by slave, sends the TCP service processes of control command message to slave;
Second controls transmitting element, for the TCP service processes by slave, according to this control command, produces corresponding control protocol, adopts asynchronous system this control protocol to be sent to the TCP service processes of main frame; And after this control command message is sent completely, proceed other control operation.
10. intelligent home control system according to claim 6, is characterized in that, described main frame also comprises:
The second main control unit, the control command message of sending for receiving slave, and this control command message is sent to the control process of main frame by TCP service processes, carry out the working control to home equipment;
Data and interface updating block, control successfully for working as, by more new data and the user interface of control process of main frame.
CN201110151990.5A 2011-06-08 2011-06-08 Intelligent home control method and system Expired - Fee Related CN102323803B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110151990.5A CN102323803B (en) 2011-06-08 2011-06-08 Intelligent home control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110151990.5A CN102323803B (en) 2011-06-08 2011-06-08 Intelligent home control method and system

Publications (2)

Publication Number Publication Date
CN102323803A CN102323803A (en) 2012-01-18
CN102323803B true CN102323803B (en) 2014-05-07

Family

ID=45451553

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110151990.5A Expired - Fee Related CN102323803B (en) 2011-06-08 2011-06-08 Intelligent home control method and system

Country Status (1)

Country Link
CN (1) CN102323803B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841459B (en) * 2012-11-26 2017-12-22 鸿富锦精密工业(深圳)有限公司 Control the system and method for multiple TV set
CN103870405B (en) * 2014-03-18 2017-05-24 广州市纬志电子科技有限公司 Information and state reloading method
CN103870360A (en) * 2014-03-18 2014-06-18 广州市纬志电子科技有限公司 Behavior state recording and taking method for central control host machine
CN105404178A (en) * 2014-08-08 2016-03-16 常熟安智生物识别技术有限公司 Scheme for remotely controlling electric cooker
CN105333565A (en) * 2014-08-08 2016-02-17 常熟安智生物识别技术有限公司 Remote control air conditioner scheme
CN105334812A (en) * 2014-08-08 2016-02-17 常熟安智生物识别技术有限公司 Plug-and-play intelligent household scheme
CN104252136B (en) * 2014-10-10 2017-02-15 中国联合网络通信集团有限公司 Intelligent home control method and system
CN105072003A (en) * 2015-07-31 2015-11-18 深圳广田智能科技有限公司 Synchronous control system and method of smart home mode
CN106385351B (en) * 2016-10-13 2019-12-13 北京小米移动软件有限公司 Control method and device of intelligent household equipment
CN108449402A (en) * 2018-03-12 2018-08-24 广东里田科技有限公司 A kind of health cabin PC and data in mobile phone intercommunicating system
CN108427309A (en) * 2018-05-08 2018-08-21 深圳永顺智信息科技有限公司 Intelligent home control system
CN111781851B (en) * 2020-08-14 2021-09-10 上海木外信息咨询服务有限公司 Home control system and method based on big data analysis

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1747421A (en) * 2004-09-07 2006-03-15 乐金电子(天津)电器有限公司 Mobile household network system
CN1929382A (en) * 2006-09-28 2007-03-14 中山大学 Device and method for control digital household electrical appliance calling limits of authority
CN201282476Y (en) * 2008-10-17 2009-07-29 福建思特电子有限公司 Intelligent household information terminal
CN101895649A (en) * 2007-05-25 2010-11-24 深圳市飞扬无限科技有限公司 Cordless telephone-based application method
CN102065089A (en) * 2010-12-30 2011-05-18 广州市聚晖电子科技有限公司 System for realizing digital family audio on demand

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002077274A (en) * 2000-08-31 2002-03-15 Toshiba Corp Home gateway device, access server and communication method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1747421A (en) * 2004-09-07 2006-03-15 乐金电子(天津)电器有限公司 Mobile household network system
CN1929382A (en) * 2006-09-28 2007-03-14 中山大学 Device and method for control digital household electrical appliance calling limits of authority
CN101895649A (en) * 2007-05-25 2010-11-24 深圳市飞扬无限科技有限公司 Cordless telephone-based application method
CN201282476Y (en) * 2008-10-17 2009-07-29 福建思特电子有限公司 Intelligent household information terminal
CN102065089A (en) * 2010-12-30 2011-05-18 广州市聚晖电子科技有限公司 System for realizing digital family audio on demand

Also Published As

Publication number Publication date
CN102323803A (en) 2012-01-18

Similar Documents

Publication Publication Date Title
CN102323803B (en) Intelligent home control method and system
JP5574544B2 (en) Unified device management method and system
CN102694870B (en) The online upgrading method of the gateway of dynamically allocate address
CN105898893B (en) Full-duplex communication method for mobile terminal and Internet of things equipment
CN102404413B (en) Method and system for realizing automatic matching of function applications among household digital devices
CN111885144A (en) Equipment binding method and device
CN101227428A (en) Application server and remote control method thereof
CN104883656A (en) Method for establishing steady state piconet based on bluetooth and system for establishing steady state piconet based on bluetooth
CN108234562B (en) Equipment control method, control equipment and controlled equipment
CN104618801A (en) Method and system for unified operation of application by utilizing mobile phone and set-top box as well as set-top box
CN104717135B (en) Method and device for realizing intelligent household gateway
WO2014169589A1 (en) Intelligent terminal synchronous operation method and device
CN100531431C (en) Device for realizing maintenance of far end radio frequency terminal by local maintenance terminal
CN105246129B (en) The network-building method and device of a kind of intelligent terminal
CN104333842A (en) Intelligent device program resource sharing method and system based on WIFI
CN109753037A (en) A kind of intelligence control system for hotel
CN113516980A (en) Scene linkage method, and scene linkage system construction method and device
CN105099836A (en) BLE intelligent node control method and system
EP3503476B1 (en) Method for controlling an electronic video door entry and/or home automation communication system and electronic system implementing the same
CN113055591B (en) Multi-machine position wireless control method, system, device and readable storage medium thereof
CN114296359A (en) Device control system, method, apparatus, electronic device, storage medium
CN114221829A (en) Edge side intelligent home management method and system
CN110418430B (en) Application sending and receiving method and device, storage medium and electronic device
CN104284302A (en) Micro type real-time intercom system based on WLAN platform and data transmission method thereof
CN112152889B (en) Method of controlling electronic device, computing device, and computer-readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140507

Termination date: 20180608

CF01 Termination of patent right due to non-payment of annual fee