CN110034983A - Home equipment interlock method and system based on Publish-subscribe message processing facility - Google Patents

Home equipment interlock method and system based on Publish-subscribe message processing facility Download PDF

Info

Publication number
CN110034983A
CN110034983A CN201910177126.9A CN201910177126A CN110034983A CN 110034983 A CN110034983 A CN 110034983A CN 201910177126 A CN201910177126 A CN 201910177126A CN 110034983 A CN110034983 A CN 110034983A
Authority
CN
China
Prior art keywords
performance
equipment
networked devices
performance equipment
publish
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
Application number
CN201910177126.9A
Other languages
Chinese (zh)
Other versions
CN110034983B (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.)
Foshan Viomi Electrical Technology Co Ltd
Original Assignee
Foshan Viomi Electrical Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Foshan Viomi Electrical Technology Co Ltd filed Critical Foshan Viomi Electrical Technology Co Ltd
Priority to CN201910177126.9A priority Critical patent/CN110034983B/en
Publication of CN110034983A publication Critical patent/CN110034983A/en
Application granted granted Critical
Publication of CN110034983B publication Critical patent/CN110034983B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house

Abstract

The invention discloses home equipment interlock methods and system based on Publish-subscribe message processing facility, including user terminal, multiple networked devices, home router and Cloud Server, it is communicated between the user terminal and multiple networked devices using Publish-subscribe message processing facility, it is communicated between the user terminal and Cloud Server using Publish-subscribe message processing facility, multiple networked devices are divided into two class of high-performance equipment and low-performance equipment, and be grouped: a high-performance equipment and multiple low-performance equipments are bound into one group, channel is established between all high-performance equipments, all high-performance equipments are communicated with home router using Publish-subscribe message processing facility, channel is established between all low-performance equipments under the same high-performance equipment, to constitute mesh network between networked devices Communication.To reduce the degree of coupling between networked devices, family also can guarantee the linkage of equipment room without outer net or when suspension.

Description

Home equipment interlock method and system based on Publish-subscribe message processing facility
Technical field
The present invention relates to Smart Home technical fields, more particularly to the household based on Publish-subscribe message processing facility is set Standby interlock method and system.
Background technique
Smart home is the embodiment of the instrumentation under the influence of internet.Smart home will be in family by technology of Internet of things Various networked devices carry out intelligent control, and newest smart home is can to make multiple correlations according to preset scene Networked devices execute corresponding movement, i.e. linkage control between realization networked devices by feature process.
And existing linkage control uses and requests/receive the response treatment mechanism, all data and control logic concentrate on Cloud Server processing just must be after Cloud Server be executed and is responded after some networked devices issues request, the networking Equipment could execute other movements, and network delay is severe;Similarly, after Cloud Server issues request, corresponding networked devices must be use up Fast execute completes request instruction, and responds result to Cloud Server, and the Cloud Server load for being connected to many trillion networked devices is non- Chang Chong.Moreover, networked devices all in family are all connected to router, network channel is crowded, and the small networking of some data volumes is set It is standby to be also networked to router, wireless channel is occupied, the networked devices for causing some data volumes big cannot get wireless channel instead. Cloud Server processing data are concentrated on, the fluency that home network is communicated with Cloud Server is strongly dependent upon, once and Cloud Server Network interruption, home networking device cannot achieve linkage.And some home networking device processing capacities are strong, for example support voice Identification, image procossing, camera equipment, only proprietary function is handled within few time, equipment is in when most of Idle state results in waste of resources.
Summary of the invention
An object of the present invention is to provide a kind of home equipment linkage sides based on Publish-subscribe message processing facility Method, reduces the degree of coupling between networked devices, and family also can guarantee the linkage of equipment room without outer net or when suspension.
It is another object of the present invention to propose a kind of home equipment linkage based on Publish-subscribe message processing facility System, reduces the degree of coupling between networked devices, and family also can guarantee the linkage of equipment room without outer net or when suspension.
To achieve this purpose, the present invention adopts the following technical scheme:
A kind of home equipment interlock method based on Publish-subscribe message processing facility, applied to the connection to smart home Net equipment is controlled, including user terminal, multiple networked devices, home router and Cloud Server, the user terminal and It is communicated between multiple networked devices using Publish-subscribe message processing facility, between the user terminal and Cloud Server It is communicated using Publish-subscribe message processing facility, the home router and Cloud Server are communicated by internet; The following steps are included:
Mesh network connection setup step, multiple networked devices are divided into two class of high-performance equipment and low-performance equipment, go forward side by side Row grouping: a high-performance equipment and multiple low-performance equipments are bound into one group, establish between all high-performance equipments Channel, all high-performance equipments are communicated with home router using Publish-subscribe message processing facility, same Channel is established between all low-performance equipments under high-performance equipment, to constitute netted Network Communication between networked devices;
Link step, and user terminal publication linkage message, the relevant high-performance equipment links message based on the received It generates and issues relevant linkage control order to relevant low-performance equipment, the relevant low-performance equipment executes corresponding Linkage action, if the relevant networked devices that link include high-performance equipment, high-performance equipment to be linked is according to linkage control Order executes corresponding linkage action;
When home router and Cloud Server communication abnormality or suspension, user terminal, which is directly issued to home router, to be joined Dynamic message issues linkage message to the relevant high-performance equipment by home router.
Preferably, further include that data save step in advance:
When home router and normal Cloud Server communication, the data for the generation that links between networked devices are directly synchronized to cloud Server;
When home router and Cloud Server communication abnormality or suspension, the data for the generation that links between networked devices save to In the database for the high-performance equipment bound with it, and mutual database data is mutually backed up between high-performance equipment;
When home router and normal Cloud Server communication recovery, home router is by the number of all high-performance equipments Cloud Server is synchronized to according to library data.
Preferably, further include failure transfer step:
Priority is established to all high-performance equipments;
When some high-performance equipment breaks down, home router ties up the high-performance equipment of failure according to priority Fixed all low-performance equipments are transferred on the high-performance equipment of normal operation and highest priority and are bound.
Preferably, distributed MQTT server, the distributed MQTT service are disposed on the high-performance equipment Device is EMQ server or VerneMQ server.
Preferably, between the user terminal and Cloud Server, between the home router and high-performance equipment and institute It states and is all made of MQTT communication protocol between user terminal and high-performance equipment;
Netted Network Communication between the networked devices is opened up using BLE Mesh mesh communication topology or ZigBee mesh communication It flutters.
Preferably, a kind of home equipment linked system based on Publish-subscribe message processing facility is applied to intelligent family The networked devices in residence are controlled, including user terminal, multiple networked devices, home router and Cloud Server, the user It is communicated between terminal and multiple networked devices using Publish-subscribe message processing facility, the user terminal and cloud service Communicated between device using Publish-subscribe message processing facility, the home router and Cloud Server by internet into Row communication;
Multiple networked devices are divided into two class of high-performance equipment and low-performance equipment, and are grouped: a high property Energy equipment and multiple low-performance equipments are bound into one group, channel are established between all high-performance equipments, all high-performance are set It is standby to be communicated with home router using Publish-subscribe message processing facility, it is all under the same high-performance equipment Channel is established between low-performance equipment, to constitute netted Network Communication between networked devices;
The user terminal is for issuing linkage message;The high-performance equipment is generated for linkage message based on the received And relevant linkage control order is issued to relevant low-performance equipment, if setting with the relevant networked devices that link comprising high-performance It is standby then corresponding linkage action is executed according to linkage control order;The low-performance equipment is for executing corresponding linkage action;
When home router and Cloud Server communication abnormality or suspension, user terminal, which is directly issued to home router, to be joined Dynamic message issues linkage message to the relevant high-performance equipment by home router.
Preferably, the high-performance equipment is equipped with the pre- preserving module of data, and the pre- preserving module of data is used for:
When home router and normal Cloud Server communication, the data for the generation that links between networked devices are directly synchronized to Cloud Server;
With when home router and Cloud Server communication abnormality or suspension, the data for the generation that links between networked devices are protected It deposits into the database of itself, and backs up the database data of other high-performance equipments;
Home router is used for when home router and normal Cloud Server communication recovery, by all high-performance equipments Database in phase to Cloud Server.
Preferably, the home router is equipped with failover module, and the failover module is used for:
Priority is established to all high-performance equipments;
With when some high-performance equipment breaks down, according to priority, the high-performance equipment of failure is bound all Low-performance equipment is transferred on the high-performance equipment of normal operation and highest priority and is bound.
Preferably, the high-performance equipment is deployed with distributed MQTT server, the distributed MQTT server For EMQ server or VerneMQ server.
Preferably, between the user terminal and Cloud Server, between the home router and high-performance equipment and institute It states and is all made of MQTT communication protocol between user terminal and high-performance equipment;
Netted Network Communication between the networked devices is opened up using BLE Mesh mesh communication topology or ZigBee mesh communication It flutters.
The home equipment interlock method based on Publish-subscribe message processing facility, user terminal and multiple networkings are set It is communicated between standby using Publish-subscribe message processing facility, publisher gives out information by all means, and subscriber accordingly subscribes to by all means Publisher and subscriber in the time and are spatially segregated by the arrival of information, and publisher and subscriber is allowed to have more time processing Other information, both sides' load greatly reduce;Such as after user terminal has issued linkage message, user terminal is without waiting for linkage The feedback of situation, but remove processing other information;Home router will link message when issuing, and high-performance equipment also only receives Itself subscribe to linkage message, if the linkage message be not itself subscribe to be that will not receive, to reduce between networked devices The degree of coupling.
Detailed description of the invention
The present invention will be further described for attached drawing, but the content in attached drawing does not constitute any limitation of the invention.
Fig. 1 is that the home equipment linkage based on Publish-subscribe message processing facility of the one of embodiment of the present invention is opened up Flutter structural schematic diagram.
Wherein: user terminal 1;Home router 2;Cloud Server 3;High-performance equipment 4;Low-performance equipment 5.
Specific embodiment
To further illustrate the technical scheme of the present invention below with reference to the accompanying drawings and specific embodiments.
Embodiment one
The home equipment interlock method based on Publish-subscribe message processing facility of the present embodiment is applied to intelligent family The networked devices in residence are controlled, as shown in Figure 1, including user terminal 1, multiple networked devices, home router 2 and cloud service Device 3 is communicated between the user terminal 1 and multiple networked devices using Publish-subscribe message processing facility, the user It is communicated between terminal 1 and Cloud Server 3 using Publish-subscribe message processing facility, the home router 2 and cloud service Device 3 is communicated by internet;The following steps are included:
Mesh network connection setup step, multiple networked devices are divided into 5 liang of classes of high-performance equipment 4 and low-performance equipment, and Be grouped: a high-performance equipment 4 and multiple low-performance equipments 5 are bound into one group, between all high-performance equipments 4 Channel is established, all high-performance equipments 4 are communicated with home router 2 using Publish-subscribe message processing facility, Channel is established between all low-performance equipments 5 under the same high-performance equipment 4, to constitute netted Netcom between networked devices Letter;
Link step, and the publication linkage message of user terminal 1, the relevant high-performance equipment 4 links based on the received to disappear Breath generates and issues relevant linkage control order to relevant low-performance equipment 5, the relevant execution pair of low-performance equipment 5 The linkage action answered, if the relevant networked devices that link include high-performance equipment 4, high-performance equipment 4 to be linked is according to connection Dynamic control command executes corresponding linkage action;
When home router 2 and 3 communication abnormality of Cloud Server or suspension, user terminal 1 is directly sent out to home router 2 Cloth linkage message issues linkage message to the relevant high-performance equipment 4 by home router 2.
The home equipment interlock method based on Publish-subscribe message processing facility, user terminal 1 and multiple networkings are set It is communicated between standby using Publish-subscribe message processing facility, publisher gives out information by all means, and subscriber accordingly subscribes to by all means Publisher and subscriber in the time and are spatially segregated by the arrival of information, and publisher and subscriber is allowed to have more time processing Other information, both sides' load greatly reduce;Such as after user terminal 1 has issued linkage message, user terminal 1 is without waiting for connection The emotionally feedback of condition, but remove processing other information;Home router 2 will link message when issuing, and high-performance equipment 4 is also Receive itself subscription linkage message, if the linkage message be not itself subscribe to be that will not receive, to reduce networked devices Between the degree of coupling.
Netted Network Communication is constituted between networked devices, only high-performance equipment 4 and home router 2 communicates to connect, and reduces It is directly connected to the number of devices of router, alleviates the crowded of network channel;And distributed treatment is used, by relevant described The message that links based on the received of high-performance equipment 4 generates and issues relevant linkage control order to relevant low-performance equipment 5, Rather than concentrate on Cloud Server 3 or home router 2 comes analyzing and processing data and control networked devices.At such distribution Reason still can be by the netted Network Communication of household internal come real when home router 2 and 3 communication abnormality of Cloud Server or suspension Linkage between existing networked devices.For example, user terminal 1 issues the linkage message for needing low-performance equipment a linkage low-performance equipment b When, the linkage message is received with the high-performance equipment A of low-performance equipment a binding and issues corresponding linkage control order to low property Energy equipment a also receives the linkage message with the high-performance equipment B of low-performance equipment b binding and issues corresponding linkage control and orders It enables to low-performance equipment b, low-performance equipment a and low-performance equipment b and needs not move through Cloud Server 3 that corresponding linkage can be realized is dynamic Make.The home equipment interlock method based on Publish-subscribe message processing facility takes full advantage of the powerful of high-performance equipment 4 Process performance, mitigate network it is too fat to move, while can well solve equipment room interconnect and linkage function;Family is without outer When net or suspension, the linkage of equipment room also can guarantee.
The user terminal 1 is mobile phone, using APP, tablet computer, smartwatch etc..The high-performance equipment 4 be in addition to It completes outside the functions such as its own dedicated voice, image procossing, camera, audio output, equipment performance itself is higher, and there are also big The equipment that amount redundancy performance does not play, such as TV, refrigerator, air-conditioning large household appliance.The low-performance equipment 5 be function compared with Equipment single or that redundancy performance is few, such as electric light, insulating pot, intelligent door lock small household appliance.
Preferably, further include that data save step in advance:
When home router 2 and Cloud Server 3 communicate normal, the data for the generation that links between networked devices are directly synchronized to Cloud Server 3;
When home router 2 and 3 communication abnormality of Cloud Server or suspension, the data for the generation that links between networked devices are saved Into the database for the high-performance equipment 4 bound with it, and mutual database number is mutually backed up between high-performance equipment 4 According to;
When home router 2 and normal 3 communication recovery of Cloud Server, home router 2 is by all high-performance equipments 4 Database in phase to Cloud Server 3.
When home router 2 and Cloud Server 3 communicate normal, the data for the generation that links between networked devices are successively through excessively high Performance equipment 4 and home router 2 are synchronized to Cloud Server 3, the data publication that Cloud Server 3 generates linkage to corresponding use Family terminal 1, user terminal 1 receive the data that the linkage itself subscribed to generates.
The database of high-performance equipment 4 is also used to store the data of generation of linking between its networked devices for binding, thus The data of generation of avoiding the problem that linking between networked devices when suspension can not save.Also, it is mutually backed up between high-performance equipment 4 Mutual database data, the case where effectively avoiding loss of data or lack;When network recovery is normal, high-performance equipment 4 Database in phase is to Cloud Server 3, and Cloud Server 3 therefrom finds out the data for the generation that links between networked devices, thus greatly The earth improves linkage reliability and stability.
Preferably, further include failure transfer step:
Priority is established to all high-performance equipments 4;When some high-performance equipment 4 breaks down, home router 2 According to priority, all low-performance equipments 5 that the high-performance equipment 4 of failure is bound are transferred to normal operation and highest priority High-performance equipment 4 on bound.
When some high-performance equipment 4 breaks down, the realization of linkage is influenced whether, it is therefore desirable to be isolated, and be New high-performance equipment 4 is found with its low-performance equipment 5 bound.So establishing priority to all high-performance equipments 4, lead to It crosses priority home router 2 is allowed to search out optimal high-performance equipment 4 and bound, priority can be with high-performance equipment 4 Processing capacity power determines, influences the realization or high-performance of linkage to avoid because the low-performance equipment 5 of binding increases significantly The function of equipment 4 itself is realized.
Preferably, distributed MQTT server, the distributed MQTT service are disposed on the high-performance equipment 4 Device is EMQ server or VerneMQ server.To make the high-performance equipment 4 possess the data being equal with Cloud Server, set Standby processing logic makes the high-performance equipment 4 message that can link based on the received generate relevant linkage control order.
Preferably, between the user terminal 1 and Cloud Server 3, between the home router 2 and high-performance equipment 4 MQTT communication protocol is all made of between the user terminal 1 and high-performance equipment 4;Netted Network Communication between the networked devices Using BLE Mesh mesh communication topology or ZigBee mesh communication topology.
Between the user terminal 1 and Cloud Server 3, between the home router 2 and high-performance equipment 4 and the use It is all made of MQTT communication protocol between family terminal 1 and high-performance equipment 4, and is not based on request/response message processing facility, subtracts Light network is too fat to move, and publisher and subscriber is allowed to have the more time to handle other information, and both sides' load greatly reduces.The networking is set Netted Network Communication between standby is using BLE Mesh mesh communication topology or ZigBee mesh communication topology, thus between each networked devices It can directly or indirectly communicate, even if the linkage between networked devices is still normal in the family of not outer net.
It is described be not based on request/response message processing facility application between have it is strong coupling, such as: using A request Instruction, need to obtain another using B processing after the completion of respond, the degree of coupling is high, increase using A delay waiting when Between, while also implying that and to put down currently performed other tasks using B, respond request instructs as early as possible, responds result after the completion To requesting party, the burden using B has been aggravated.
Embodiment two
The home equipment linked system based on Publish-subscribe message processing facility of the present embodiment, as shown in Figure 1, using It is controlled in the networked devices to smart home, including user terminal 1, multiple networked devices, home router 2 and cloud service Device 3 is communicated between the user terminal 1 and multiple networked devices using Publish-subscribe message processing facility, the user It is communicated between terminal 1 and Cloud Server 3 using Publish-subscribe message processing facility, the home router 2 and cloud service Device 3 is communicated by internet;
Multiple networked devices are divided into 5 liang of classes of high-performance equipment 4 and low-performance equipment, and are grouped: a height Performance equipment 4 and multiple low-performance equipments 5 are bound into one group, and channel, all high property are established between all high-performance equipments 4 Energy equipment 4 is communicated with home router 2 using Publish-subscribe message processing facility, under the same high-performance equipment 4 All low-performance equipments 5 between establish channel, to constitute netted Network Communication between networked devices;
The user terminal 1 is for issuing linkage message;The high-performance equipment 4 is produced for linkage message based on the received It gives birth to and issues relevant linkage control order to relevant low-performance equipment 5, and if the relevant networked devices that link include high property Energy equipment 4 then executes corresponding linkage action according to linkage control order;The low-performance equipment 5 is for executing corresponding linkage Movement;
When home router 2 and 3 communication abnormality of Cloud Server or suspension, user terminal 1 is directly sent out to home router 2 Cloth linkage message issues linkage message to the relevant high-performance equipment 4 by home router 2.
The home equipment linked system based on Publish-subscribe message processing facility, user terminal 1 and multiple networkings are set It is communicated between standby using Publish-subscribe message processing facility, publisher gives out information by all means, and subscriber accordingly subscribes to by all means Publisher and subscriber in the time and are spatially segregated by the arrival of information, and publisher and subscriber is allowed to have more time processing Other information, both sides' load greatly reduce;Such as after user terminal 1 has issued linkage message, user terminal 1 is without waiting for connection The emotionally feedback of condition, but remove processing other information;Home router 2 will link message when issuing, and high-performance equipment 4 is also Receive itself subscription linkage message, if the linkage message be not itself subscribe to be that will not receive, to reduce networked devices Between the degree of coupling.
Netted Network Communication is constituted between networked devices, only high-performance equipment 4 and home router 2 communicates to connect, and reduces It is directly connected to the number of devices of router, alleviates the crowded of network channel;And distributed treatment is used, by relevant described The message that links based on the received of high-performance equipment 4 generates and issues relevant linkage control order to relevant low-performance equipment 5, Rather than concentrate on Cloud Server 3 or home router 2 comes analyzing and processing data and control networked devices.At such distribution Reason still can be by the netted Network Communication of household internal come real when home router 2 and 3 communication abnormality of Cloud Server or suspension Linkage between existing networked devices.For example, user terminal 1 issues the linkage message for needing low-performance equipment a linkage low-performance equipment b When, the linkage message is received with the high-performance equipment A of low-performance equipment a binding and issues corresponding linkage control order to low property Energy equipment a also receives the linkage message with the high-performance equipment B of low-performance equipment b binding and issues corresponding linkage control and orders It enables to low-performance equipment b, low-performance equipment a and low-performance equipment b and needs not move through Cloud Server 3 that corresponding linkage can be realized is dynamic Make.The home equipment linked system based on Publish-subscribe message processing facility takes full advantage of the powerful of high-performance equipment 4 Process performance, mitigate network it is too fat to move, while can well solve equipment room interconnect and linkage function;Family is without outer When net or suspension, the linkage of equipment room also can guarantee.
The user terminal 1 is mobile phone, using APP, tablet computer, smartwatch etc..The high-performance equipment 4 be in addition to It completes outside the functions such as its own dedicated voice, image procossing, camera, audio output, equipment performance itself is higher, and there are also big The equipment that amount redundancy performance does not play, such as TV, refrigerator, air-conditioning large household appliance.The low-performance equipment 5 be function compared with Equipment single or that redundancy performance is few, such as electric light, insulating pot, intelligent door lock small household appliance.
Preferably, the high-performance equipment 4 is equipped with the pre- preserving module of data, and the pre- preserving module of data is used for: main When front yard router 2 and Cloud Server 3 communicate normal, the data for the generation that links between networked devices are directly synchronized to Cloud Server 3;
With when home router 2 and 3 communication abnormality of Cloud Server or suspension, by the data for the generation that links between networked devices It saves into the database of itself, and backs up the database data of other high-performance equipments 4;
Home router 2 is used for when home router 2 and normal 3 communication recovery of Cloud Server, by all high-performance The database in phase of equipment 4 is to Cloud Server 3.
When home router 2 and Cloud Server 3 communicate normal, the data for the generation that links between networked devices are successively through excessively high Performance equipment 4 and home router 2 are synchronized to Cloud Server 3, the data publication that Cloud Server 3 generates linkage to corresponding use Family terminal 1, user terminal 1 receive the data that the linkage itself subscribed to generates.
The database of high-performance equipment 4 is also used to store the data of generation of linking between its networked devices for binding, thus The data of generation of avoiding the problem that linking between networked devices when suspension can not save.Also, it is mutually backed up between high-performance equipment 4 Mutual database data, the case where effectively avoiding loss of data or lack;When network recovery is normal, high-performance equipment 4 Database in phase is to Cloud Server 3, and Cloud Server 3 therefrom finds out the data for the generation that links between networked devices, thus greatly The earth improves linkage reliability and stability.
Preferably, the home router 2 is equipped with failover module, and the failover module is used for:
Priority is established to all high-performance equipments 4;With when some high-performance equipment 4 break down when, according to preferential All low-performance equipments 5 that the high-performance equipment 4 of failure is bound, are transferred to the high-performance of normal operation and highest priority by grade It is bound in equipment 4.
When some high-performance equipment 4 breaks down, the realization of linkage is influenced whether, it is therefore desirable to be isolated, and be New high-performance equipment 4 is found with its low-performance equipment 5 bound.So establishing priority to all high-performance equipments 4, lead to It crosses priority home router 2 is allowed to search out optimal high-performance equipment 4 and bound, priority can be with high-performance equipment 4 Processing capacity power determines, influences the realization or high-performance of linkage to avoid because the low-performance equipment 5 of binding increases significantly The function of equipment 4 itself is realized.
Preferably, the high-performance equipment 4 is deployed with distributed MQTT server, the distributed MQTT server For EMQ server or VerneMQ server.To make the high-performance equipment 4 possess the data being equal with background server, set Standby processing logic makes the high-performance equipment 4 message that can link based on the received generate relevant linkage control order.
Preferably, between the user terminal 1 and Cloud Server 3, between the home router 2 and high-performance equipment 4 MQTT communication protocol is all made of between the user terminal 1 and high-performance equipment 4;Netted Network Communication between the networked devices Using BLE Mesh mesh communication topology or ZigBee mesh communication topology.
Between the user terminal 1 and Cloud Server 3, between the home router 2 and high-performance equipment 4 and the use It is all made of MQTT communication protocol between family terminal 1 and high-performance equipment 4, and is not based on request/response message processing facility, subtracts Light network is too fat to move, and publisher and subscriber is allowed to have the more time to handle other information, and both sides' load greatly reduces.The networking is set Netted Network Communication between standby is using BLE Mesh mesh communication topology or ZigBee mesh communication topology, thus between each networked devices It can directly or indirectly communicate, even if the linkage between networked devices is still normal in the family of not outer net.
It is described be not based on request/response message processing facility application between have it is strong coupling, such as: using A request Instruction, need to obtain another using B processing after the completion of respond, the degree of coupling is high, increase using A delay waiting when Between, while also implying that and to put down currently performed other tasks using B, respond request instructs as early as possible, responds result after the completion To requesting party, the burden using B has been aggravated.
The technical principle of the invention is described above in combination with a specific embodiment.These descriptions are intended merely to explain of the invention Principle, and shall not be construed in any way as a limitation of the scope of protection of the invention.Based on the explanation herein, the technology of this field Personnel can associate with other specific embodiments of the invention without creative labor, these modes are fallen within Within protection scope of the present invention.

Claims (10)

1. a kind of home equipment interlock method based on Publish-subscribe message processing facility, which is characterized in that be applied to intelligence The networked devices of household are controlled, including user terminal, multiple networked devices, home router and Cloud Server, the use It is communicated between family terminal and multiple networked devices using Publish-subscribe message processing facility, the user terminal and cloud clothes It is communicated between business device using Publish-subscribe message processing facility, the home router and Cloud Server pass through internet It is communicated;The following steps are included:
Mesh network connection setup step, multiple networked devices are divided into two class of high-performance equipment and low-performance equipment, and are divided Group: a high-performance equipment and multiple low-performance equipments are bound into one group, establish channel between all high-performance equipments, All high-performance equipments are communicated with home router using Publish-subscribe message processing facility, in the same high property Channel is established between all low-performance equipments under energy equipment, to constitute netted Network Communication between networked devices;
Link step, user terminal publication linkage message, the relevant high-performance equipment link based on the received message generation And relevant linkage control order is issued to relevant low-performance equipment, the relevant low-performance equipment executes corresponding linkage Movement, if the relevant networked devices that link include high-performance equipment, high-performance equipment to be linked is according to linkage control order Execute corresponding linkage action;
When home router and Cloud Server communication abnormality or suspension, user terminal directly disappears to home router publication linkage Breath issues linkage message to the relevant high-performance equipment by home router.
2. the home equipment interlock method according to claim 1 based on Publish-subscribe message processing facility, feature exist In further including that data save step in advance:
When home router and normal Cloud Server communication, the data for the generation that links between networked devices are directly synchronized to cloud service Device;
When home router and Cloud Server communication abnormality or suspension, the data for the generation that links between networked devices save to its In the database of the high-performance equipment of binding, and mutual database data is mutually backed up between high-performance equipment;
When home router and normal Cloud Server communication recovery, home router is by the database of all high-performance equipments Data are synchronized to Cloud Server.
3. the home equipment interlock method according to claim 1 based on Publish-subscribe message processing facility, feature exist In further including failure transfer step:
Priority is established to all high-performance equipments;
When some high-performance equipment breaks down, home router binds the high-performance equipment of failure according to priority All low-performance equipments are transferred on the high-performance equipment of normal operation and highest priority and are bound.
4. the home equipment interlock method according to claim 1 based on Publish-subscribe message processing facility, feature exist In: distributed MQTT server is disposed on the high-performance equipment, the distributed MQTT server is EMQ server Or VerneMQ server.
5. the home equipment interlock method according to claim 1 based on Publish-subscribe message processing facility, feature exist In: between the user terminal and Cloud Server, between the home router and high-performance equipment and the user terminal and MQTT communication protocol is all made of between high-performance equipment;
Netted Network Communication between the networked devices is using BLE Mesh mesh communication topology or ZigBee mesh communication topology.
6. a kind of home equipment linked system based on Publish-subscribe message processing facility, it is characterised in that: be applied to intelligence The networked devices of household are controlled, including user terminal, multiple networked devices, home router and Cloud Server, the use It is communicated between family terminal and multiple networked devices using Publish-subscribe message processing facility, the user terminal and cloud clothes It is communicated between business device using Publish-subscribe message processing facility, the home router and Cloud Server pass through internet It is communicated;
Multiple networked devices are divided into two class of high-performance equipment and low-performance equipment, and are grouped: a high-performance is set Standby and multiple low-performance equipments are bound into one group, and channel is established between all high-performance equipments, and all high-performance equipments are equal It is communicated with home router using Publish-subscribe message processing facility, all low property under the same high-performance equipment Channel can be established between equipment, to constitute netted Network Communication between networked devices;
The user terminal is for issuing linkage message;The high-performance equipment for based on the received linkage message generate and under Send out linkage control order relevant to relevant low-performance equipment, and if the relevant networked devices that link include high-performance equipment Corresponding linkage action is executed according to linkage control order;The low-performance equipment is for executing corresponding linkage action;
When home router and Cloud Server communication abnormality or suspension, user terminal directly disappears to home router publication linkage Breath issues linkage message to the relevant high-performance equipment by home router.
7. the home equipment linked system according to claim 6 based on Publish-subscribe message processing facility, feature exist In:
The high-performance equipment is equipped with the pre- preserving module of data, and the pre- preserving module of data is used for:
When home router and normal Cloud Server communication, the data for the generation that links between networked devices are directly synchronized to cloud clothes Business device;
With when home router and Cloud Server communication abnormality or suspension, by the data for the generation that links between networked devices save to In the database of itself, and back up the database data of other high-performance equipments;
Home router is used for when home router and normal Cloud Server communication recovery, by the number of all high-performance equipments Cloud Server is synchronized to according to library data.
8. the home equipment linked system according to claim 6 based on Publish-subscribe message processing facility, feature exist In:
The home router is equipped with failover module, and the failover module is used for:
Priority is established to all high-performance equipments;
With when some high-performance equipment breaks down, according to priority, all low property that the high-performance equipment of failure is bound Energy equipment, which is transferred on the high-performance equipment of normal operation and highest priority, is bound.
9. the home equipment linked system according to claim 6 based on Publish-subscribe message processing facility, feature exist Be deployed with distributed MQTT server in: the high-performance equipment, the distributed MQTT server be EMQ server or VerneMQ server.
10. the home equipment linked system according to claim 6 based on Publish-subscribe message processing facility, feature It is: between the user terminal and Cloud Server, between the home router and high-performance equipment and the user terminal MQTT communication protocol is all made of between high-performance equipment;
Netted Network Communication between the networked devices is using BLE Mesh mesh communication topology or ZigBee mesh communication topology.
CN201910177126.9A 2019-03-08 2019-03-08 Home equipment linkage method and system based on publish-subscribe message processing mechanism Active CN110034983B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910177126.9A CN110034983B (en) 2019-03-08 2019-03-08 Home equipment linkage method and system based on publish-subscribe message processing mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910177126.9A CN110034983B (en) 2019-03-08 2019-03-08 Home equipment linkage method and system based on publish-subscribe message processing mechanism

Publications (2)

Publication Number Publication Date
CN110034983A true CN110034983A (en) 2019-07-19
CN110034983B CN110034983B (en) 2020-12-29

Family

ID=67235203

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910177126.9A Active CN110034983B (en) 2019-03-08 2019-03-08 Home equipment linkage method and system based on publish-subscribe message processing mechanism

Country Status (1)

Country Link
CN (1) CN110034983B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111065079A (en) * 2019-12-12 2020-04-24 杭州涂鸦信息技术有限公司 Local device binding method and system
CN112751937A (en) * 2020-12-30 2021-05-04 广东好太太智能家居有限公司 Distributed edge intelligent Bluetooth Mesh gateway system and implementation method
CN113055591A (en) * 2021-03-08 2021-06-29 深圳创维-Rgb电子有限公司 Multi-machine position wireless control method, system, device and readable storage medium thereof
WO2021169983A1 (en) * 2020-02-24 2021-09-02 Qingdao Haier Smart Technology R&D Co., Ltd. Consumer appliance inheritance methods and systems
CN113760581A (en) * 2021-09-09 2021-12-07 四川虹美智能科技有限公司 MQTT-based method and system for synchronizing attribute information of intelligent terminal
CN114157725A (en) * 2021-11-11 2022-03-08 珠海格力电器股份有限公司 Equipment linkage method and device, server, electronic equipment and storage medium
CN114189399A (en) * 2020-09-14 2022-03-15 深圳长城开发科技股份有限公司 Intelligent household system based on LoRa and local mutual control method thereof
CN114339844A (en) * 2020-09-30 2022-04-12 云米互联科技(广东)有限公司 Scene linkage fault analysis method and device and computer readable storage medium
CN114584414A (en) * 2020-12-01 2022-06-03 深圳绿米联创科技有限公司 Device control method, device, electronic device and computer-readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202218250U (en) * 2011-07-07 2012-05-09 天津七所精密机电技术有限公司 Integrated household intelligent information center device
CN103139251A (en) * 2011-11-29 2013-06-05 神州数码信息系统有限公司 Method of city-level data sharing exchange platform technology
CN103581307A (en) * 2013-10-17 2014-02-12 北京邮电大学 Publishing/subscribing system based on clusters and method for guaranteeing reliability of publishing/subscribing system based on clusters
CN104808506A (en) * 2015-05-14 2015-07-29 郭萌 Data server for smart home
CN105159150A (en) * 2015-07-23 2015-12-16 北京章鱼智数科技有限公司 Intelligent equipment linkage control method
CN106227045A (en) * 2016-07-25 2016-12-14 青岛海信电器股份有限公司 A kind of Smart Home inter-linked controlling method, device and system
US20180054655A1 (en) * 2016-08-18 2018-02-22 At&T Intellectual Property I, L.P. Satellite tv user community smart device monitoring and management
CN108111358A (en) * 2018-01-12 2018-06-01 重庆惠家通信息技术有限公司 POE intelligent domestic gateway networking configuration methods

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202218250U (en) * 2011-07-07 2012-05-09 天津七所精密机电技术有限公司 Integrated household intelligent information center device
CN103139251A (en) * 2011-11-29 2013-06-05 神州数码信息系统有限公司 Method of city-level data sharing exchange platform technology
CN103581307A (en) * 2013-10-17 2014-02-12 北京邮电大学 Publishing/subscribing system based on clusters and method for guaranteeing reliability of publishing/subscribing system based on clusters
CN104808506A (en) * 2015-05-14 2015-07-29 郭萌 Data server for smart home
CN105159150A (en) * 2015-07-23 2015-12-16 北京章鱼智数科技有限公司 Intelligent equipment linkage control method
CN106227045A (en) * 2016-07-25 2016-12-14 青岛海信电器股份有限公司 A kind of Smart Home inter-linked controlling method, device and system
US20180054655A1 (en) * 2016-08-18 2018-02-22 At&T Intellectual Property I, L.P. Satellite tv user community smart device monitoring and management
CN108111358A (en) * 2018-01-12 2018-06-01 重庆惠家通信息技术有限公司 POE intelligent domestic gateway networking configuration methods

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李腾等: "《实时发布/订阅数据分发服务的模型分析》", 《无线电工程》 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111065079B (en) * 2019-12-12 2023-10-20 杭州涂鸦信息技术有限公司 Local equipment binding method and system
CN111065079A (en) * 2019-12-12 2020-04-24 杭州涂鸦信息技术有限公司 Local device binding method and system
CN114072745B (en) * 2020-02-24 2024-01-16 青岛海尔智能技术研发有限公司 Method for operating a household appliance and household appliance
WO2021169983A1 (en) * 2020-02-24 2021-09-02 Qingdao Haier Smart Technology R&D Co., Ltd. Consumer appliance inheritance methods and systems
CN114072745A (en) * 2020-02-24 2022-02-18 青岛海尔智能技术研发有限公司 Method for operating a household appliance and household appliance
CN114189399A (en) * 2020-09-14 2022-03-15 深圳长城开发科技股份有限公司 Intelligent household system based on LoRa and local mutual control method thereof
CN114339844A (en) * 2020-09-30 2022-04-12 云米互联科技(广东)有限公司 Scene linkage fault analysis method and device and computer readable storage medium
CN114339844B (en) * 2020-09-30 2023-11-03 云米互联科技(广东)有限公司 Scene linkage fault analysis method, equipment and computer readable storage medium
CN114584414A (en) * 2020-12-01 2022-06-03 深圳绿米联创科技有限公司 Device control method, device, electronic device and computer-readable storage medium
CN112751937A (en) * 2020-12-30 2021-05-04 广东好太太智能家居有限公司 Distributed edge intelligent Bluetooth Mesh gateway system and implementation method
CN113055591B (en) * 2021-03-08 2023-04-07 深圳创维-Rgb电子有限公司 Multi-machine position wireless control method, system, device and readable storage medium thereof
CN113055591A (en) * 2021-03-08 2021-06-29 深圳创维-Rgb电子有限公司 Multi-machine position wireless control method, system, device and readable storage medium thereof
CN113760581A (en) * 2021-09-09 2021-12-07 四川虹美智能科技有限公司 MQTT-based method and system for synchronizing attribute information of intelligent terminal
CN114157725A (en) * 2021-11-11 2022-03-08 珠海格力电器股份有限公司 Equipment linkage method and device, server, electronic equipment and storage medium
CN114157725B (en) * 2021-11-11 2023-09-12 珠海格力电器股份有限公司 Method, device, server, electronic equipment and storage medium for equipment linkage

Also Published As

Publication number Publication date
CN110034983B (en) 2020-12-29

Similar Documents

Publication Publication Date Title
CN110034983A (en) Home equipment interlock method and system based on Publish-subscribe message processing facility
CN103236949B (en) Monitoring method, device and the system of a kind of server cluster
CN105392181B (en) A kind of networking method of smart machine, apparatus and system
CN109302471A (en) A kind of Intelligent household scene control system and method
CN102025756A (en) Distributed system and data synchronization method thereof
CN110493270A (en) Internet of things equipment accesses fused controlling method and device thereof
CN105093945A (en) System and method for safely controlling smart household apparatuses based on smart cloud
CN103117876A (en) User state information synchronizing method and device
CN104836749B (en) A kind of SDN data planes carrier state forwarding processor
CN106302615A (en) Method for remote management, managed devices, management equipment and intelligent television system
US10037253B2 (en) Fault handling methods in a home service system, and associated household appliances and servers
CN103036760A (en) Topology convergence method and member equipment of stacking system
CN105807619A (en) Small household electrical appliance wireless network control method
CN104038548A (en) Server system
CN104202255A (en) Efficient multi-link data transmission implementation method
CN107071067B (en) Cgo-based high-performance stock market access system and method
CN105162623A (en) Cloud processing method and cloud server
CN205540005U (en) Controlgear , system and remote controller of household electrical appliances
CN107017915A (en) A kind of equipment and its method of work for realizing shared by multiple systems wireless network
CN113246117A (en) Robot control method and device and building management system
CN113992740B (en) Middleware based on autonomous control and data transmission method
CN101436953B (en) Management method and processing module for on-line announcement message of network appliance
CN103905513A (en) Electronic device remote control system and method
CN105791377A (en) Cloud access system and method based on wireless communication module
CN108848121A (en) Screen-picture transmission method, device, server, system and storage medium

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