CN106385410A - Intelligent household appliance control system based on MQTT - Google Patents

Intelligent household appliance control system based on MQTT Download PDF

Info

Publication number
CN106385410A
CN106385410A CN201610810616.4A CN201610810616A CN106385410A CN 106385410 A CN106385410 A CN 106385410A CN 201610810616 A CN201610810616 A CN 201610810616A CN 106385410 A CN106385410 A CN 106385410A
Authority
CN
China
Prior art keywords
equipment
proxy server
control
mqtt
theme
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.)
Pending
Application number
CN201610810616.4A
Other languages
Chinese (zh)
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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201610810616.4A priority Critical patent/CN106385410A/en
Publication of CN106385410A publication Critical patent/CN106385410A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/1045Proxies, e.g. for session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention relates to the network communication field, and discloses an intelligent household appliance control system based on the MQTT. When a device end is dropped, the condition of dropping is timely discovered so as to ensure that the data cannot be repeatedly sent. The system comprises a device end, a control end, a proxy server. The proxy server is connected with the device end and the control end through the MQTT; the theme subscribed by the device end is the theme published by the control end, the theme published by the device end is the theme subscribed by the control end; when the device end is dropped by accident, the control end can receives information setting in advance from the proxy server according to the last wish mechanism of the MQTT protocol itself, and the control end can check the offline of the device end through the information; and when the device end is dropped by accident, the device end can know the disconnection with a server through the heartbeat of the proxy server. The intelligent household appliance control system based on the MQTT is suitable for the household appliance communication transmission.

Description

Intelligent appliance apparatus control system based on MQTT
Technical field
The present invention relates to the network communications technology, particularly to the intelligent appliance apparatus control system based on MQTT.
Background technology
MQTT is the message transmission protocol of the publish/subscribe based on agency for the lightweight increased income, and it can be by very Few code and bandwidth are connected with equipment.The transformat of MQTT is very smart little, and no application message head is it is ensured that message passes The reliability passed, including three kinds of different service quality (at most only pass once, minimum passed once, once and only pass once). If client (equipment end or control end) surprisingly breaks, it is possible to use " unfulfilled wish of the deceased " issues a piece of news.
The control communication of equipment end is by TCP or udp protocol mostly at present.Equipment end is monitored and is connected, control end master Dynamic transmission is broadcasted or multicast.When equipment end has monitored connection, foundation connects breath notice control end of concurrently delivering letters and reaches the standard grade.Control Termination receives equipment reaches the standard grade and sends control instruction after information, and equipment end reads data, data is parsed into control instruction and completes Corresponding control command.There are a lot of problems in this traditional control communication pattern, such as in the case of unstable networks, how Ensure that data transfer has no problem, how to ensure that data is not repeated transmission, connect and how quickly to be reconnected after disconnecting.
Content of the invention
The technical problem to be solved in the present invention is:There is provided a kind of intelligent appliance apparatus control system based on MQTT, when setting For making a clean sweep of line, find situation about going offline it is ensured that data is not repeated transmission in time.
For solving the above problems, the technical solution used in the present invention is:Based on the intelligent appliance apparatus control system of MQTT, Including equipment end, control end, proxy server;Proxy server is connected with equipment end, control end by MQTT;
Equipment end and control end are subscriber is also publisher, and, equipment end is fixed prefix with itself No. SN and makees Be the theme the message subscribed to and issue, and control end is fixed prefix using pay close attention to equipment No. SN and subscribes to as theme and disappearing of issuing Breath;The theme that equipment end is subscribed to is the theme that control end is issued, and the theme that equipment end is issued is the theme that control end is subscribed to;
Proxy server is according to equipment end corresponding topic of subscription automatic push control command to corresponding equipment end;When setting , to after proxy server, proxy server is according to this letter of topic of subscription automatic push of control end for standby end issued state change information Cease corresponding control end;
When equipment end surprisingly goes offline, according to the unfulfilled wish of the deceased mechanism of MQTT agreement itself, control end can be from proxy server Receive the message being previously set, control end can be offline by this Information check equipment end.
Further, when equipment end surprisingly goes offline, equipment end can by the heart beating with proxy server know oneself with Server is disconnected connection.
Further, after equipment end connects upper proxy server, issue the message reached the standard grade with regard to equipment to agency Server;After the equipment of concern connects upper proxy server, control end can receive a concern equipment from proxy server and send out The message reached the standard grade with regard to equipment of cloth.
Further, the theme that control end is read surely is multiple, control end it can be found that and monitoring multiple equipment state.
Further, the theme that equipment end is read surely is multiple, and equipment end can be controlled by multiple control ends.
The invention has the beneficial effects as follows:Developer in using MQTT protocol procedures it is not necessary to agreement to MQTT and Interface is understood in detail, saves the development time, improves development efficiency;Avoid using during conventional TCP/IP agreement communication The insecure problem of unstable networks data transfer;The agreement having unified intelligent appliance equipment uses, it is to avoid during using The problem being likely to occur;Avoid that equipment end bandwidth availability ratio is low, the high problem of power consumption.
Brief description
Fig. 1 is the schematic flow sheet of the present invention.
Specific embodiment
Below in conjunction with accompanying drawing, technical scheme is further elaborated.
As shown in figure 1, equipment end and control end are all connected to proxy server by MQTT in this example.Equipment end in this example For intelligent appliance, it is using the SN of Fixed CP plus this equipment as the theme that will subscribe to and issue;Control end is then with fixation Prefix adds No. SN of the equipment of needs concern as the theme subscribed to and issue.The theme that equipment end is subscribed to is that control end is issued Theme, the theme that equipment end is issued is the theme that control end is subscribed to, and corresponds to two-by-two.So control end issues control instruction to agency After server, proxy server will be according to equipment end corresponding topic of subscription automatic push control command to corresponding equipment End;After equipment end issued state change information is to proxy server, server can push away automatically according to the topic of subscription of control end Give this information to corresponding control end.
Equipment end can issue the message reached the standard grade with regard to equipment to server after connecting upper proxy server, works as control end After server in connection, because control end have subscribed the theme of concern equipment server can disappearing of reaching the standard grade of automatic push equipment Cease control end, such control end has been detected by equipment and has reached the standard grade, control end just can send control instruction.
When equipment end needs the correlation behavior sending equipment to control end, directly issue related status information to service Device, server is according to this status information of theme automatic push subscribed to corresponding control end.Because multiple control ends can be ordered Read identical theme, so multiple control end all can receive this status information.
When equipment end accident server disconnects, it is previously set according to " unfulfilled wish of the deceased " mechanism server push one of MQTT To corresponding control end, such control end just can rapidly detect equipment end broken string using this message to good message.
The concrete operations flow process of the present embodiment is as follows:
Step one, equipment are connected to proxy server by MQTT when starting;
Step 2, equipment end with No. SN of equipment be fixed prefix be the theme to server subscribe to and give out information, and Issue the message reached the standard grade with regard to oneself to server;
Step 3, control end are connected to proxy server by MQTT when starting;
Step 4, control end are fixed prefix with device to be controlled SN and are the theme subscribes to server and issue disappears Breath, can receive, after control end connects upper server, the information that the equipment of server push is reached the standard grade, discovering device is reached the standard grade;
Step 5, control end issue control command to server;
Step 6, equipment end receive the control end control command of server push;When equipment end needs to send out to control end Send equipment correlation behavior when, directly issue related status information arrive server, server according to subscription theme automatic push This status information is to corresponding control end;Because multiple control ends can subscribe to identical theme, multiple control ends all can Receive this status information;
Step 7, when equipment end accident server disconnect when, according to " unfulfilled wish of the deceased " mechanism server push one of MQTT To corresponding control end, such control end just can rapidly detect equipment end using this message to the message being previously set Broken string, finds situation about going offline in time;Meanwhile, equipment end can know oneself and service by " heart beating " with proxy server Device is disconnected connection.Afterwards, treat that equipment end reconnects to proxy server, what equipment end issue one was reached the standard grade with regard to oneself disappears After ceasing server, control end discovering device is reached the standard grade, and control end and equipment end can continue to transmit the information content not completed, and protect Card data is not repeated transmission
The present invention passes through to formulate special subscription/publication rule it is achieved that the communication of intelligent appliance equipment and control end.With When solve the unwarrantable problem of data transfer, equipment end in the case that network is bad according to the MQTT agreement feature of itself Bandwidth occupancy is high, and the high problem of power consumption and equipment surprisingly go offline automatically from the new problem connecting.
The foregoing describe the ultimate principle of the present invention and main feature, the description of description is to illustrate that the present invention's is former Reason, without departing from the spirit and scope of the present invention, the present invention also has various changes and modifications, these changes and improvements Both fall within scope of the claimed invention.

Claims (5)

1. the intelligent appliance apparatus control system based on MQTT is it is characterised in that include equipment end, control end, proxy server; Proxy server is connected with equipment end, control end by MQTT;
Equipment end and control end are subscriber is also publisher, and, equipment end is fixed prefix as master using itself No. SN The message that topic is subscribed to and issued, control end is fixed, using pay close attention to equipment No. SN, the message that prefix is subscribed to as theme and issued; The theme that equipment end is subscribed to is the theme that control end is issued, and the theme that equipment end is issued is the theme that control end is subscribed to;
Proxy server is according to equipment end corresponding topic of subscription automatic push control command to corresponding equipment end;Work as equipment end To after proxy server, proxy server arrives issued state change information according to this information of topic of subscription automatic push of control end Corresponding control end;
When equipment end surprisingly goes offline, according to the unfulfilled wish of the deceased mechanism of MQTT agreement itself, control end can receive from proxy server One message being previously set, control end can be offline by this Information check equipment end.
2. the intelligent appliance apparatus control system based on MQTT as claimed in claim 1 is it is characterised in that work as equipment end surprisingly Go offline, equipment end can be connected by knowing that oneself is disconnected with server with the heart beating of proxy server.
3. the intelligent appliance apparatus control system based on MQTT as claimed in claim 1 connects it is characterised in that working as equipment end After upper proxy server, issue the message reached the standard grade with regard to equipment to proxy server;Act on behalf of when the equipment of concern connects After server, control end can receive, from proxy server, the message reached the standard grade with regard to equipment that a concern equipment is issued.
4. the intelligent appliance apparatus control system based on MQTT as claimed in claim 1 is it is characterised in that what control end was read surely Theme is multiple, control end it can be found that and monitoring multiple equipment state.
5. the intelligent appliance apparatus control system based on MQTT as claimed in claim 1 is it is characterised in that what equipment end was read surely Theme is multiple, and equipment end can be controlled by multiple control ends.
CN201610810616.4A 2016-09-08 2016-09-08 Intelligent household appliance control system based on MQTT Pending CN106385410A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610810616.4A CN106385410A (en) 2016-09-08 2016-09-08 Intelligent household appliance control system based on MQTT

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610810616.4A CN106385410A (en) 2016-09-08 2016-09-08 Intelligent household appliance control system based on MQTT

Publications (1)

Publication Number Publication Date
CN106385410A true CN106385410A (en) 2017-02-08

Family

ID=57938184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610810616.4A Pending CN106385410A (en) 2016-09-08 2016-09-08 Intelligent household appliance control system based on MQTT

Country Status (1)

Country Link
CN (1) CN106385410A (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107154972A (en) * 2017-04-27 2017-09-12 上海斐讯数据通信技术有限公司 A kind of Internet of Things smart machine state synchronization method and system based on equipment snapshot
CN108540554A (en) * 2018-04-10 2018-09-14 天津科技大学 Based on MQTT agreements to the control method of Intelligent hardware device
CN108965447A (en) * 2018-07-27 2018-12-07 四川爱创科技有限公司 The method and system that data are acquired and remotely controlled
CN109088723A (en) * 2018-10-26 2018-12-25 四川长虹电器股份有限公司 A kind of long-range control method based on MQTT agreement
CN109756417A (en) * 2019-01-04 2019-05-14 平安科技(深圳)有限公司 Offline message distribution method, server and storage medium
CN110266810A (en) * 2019-07-03 2019-09-20 Oppo广东移动通信有限公司 Message receival method, equipment and storage medium based on MQTT agreement
CN110390753A (en) * 2019-08-30 2019-10-29 金瓜子科技发展(北京)有限公司 A kind of method, apparatus, storage medium and electronic equipment controlling gate
CN110417499A (en) * 2019-08-13 2019-11-05 沈阳风驰软件股份有限公司 Platform regional broadcast system based on MQTT agreement
CN110622485A (en) * 2017-05-15 2019-12-27 瑞典爱立信有限公司 Topic processing in MQTT networks
CN110635970A (en) * 2019-10-10 2019-12-31 武汉普利商用机器有限公司 Internet of things equipment online state identification method, online information platform and server
CN111770143A (en) * 2020-06-16 2020-10-13 南京东源磐能能源科技股份有限公司 Data breakpoint continuous transmission scheme based on Mqtt protocol
WO2020207091A1 (en) * 2019-04-10 2020-10-15 创新先进技术有限公司 Management client, and device monitoring system and method
CN111865754A (en) * 2019-04-30 2020-10-30 桂林电子科技大学 MQTT-based remote monitoring method and system
CN112104720A (en) * 2020-09-03 2020-12-18 国电南瑞科技股份有限公司 MQTT double-Broker data interaction method and system suitable for edge Internet of things terminal
CN112261088A (en) * 2020-09-27 2021-01-22 华数传媒网络有限公司 Set top box remote control method
CN113099499A (en) * 2017-12-15 2021-07-09 深圳市大疆创新科技有限公司 Wireless communication method, device and system
US11108890B2 (en) 2019-04-10 2021-08-31 Advanced New Technologies Co., Ltd. Management client and device monitoring
CN113593720A (en) * 2020-04-30 2021-11-02 京东方科技集团股份有限公司 Remote consultation control method and system, computer equipment and medium
WO2022116760A1 (en) * 2020-12-04 2022-06-09 珠海格力电器股份有限公司 Internet of things device monitoring method, server, and internet of things device
CN114785850A (en) * 2022-05-07 2022-07-22 北京卡特加特智能科技有限公司 Scene linkage synchronization method and system
CN114826979A (en) * 2022-04-07 2022-07-29 中国联合网络通信集团有限公司 Network link quality obtaining method, device, system, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201758454U (en) * 2010-04-27 2011-03-09 山东大学 Novel intelligent household system in the internet of things era
CN103888504A (en) * 2013-09-18 2014-06-25 苏州硕穗光机电科技有限公司 Host computer and slave computer in intelligent household system and communication method thereof
CN104113458A (en) * 2014-07-23 2014-10-22 海信集团有限公司 Mobile terminal and intelligent household appliance interconnecting method and device
CN104902474A (en) * 2015-04-14 2015-09-09 闪联信息技术工程中心有限公司 Method and device for establishing incidence relation between equipment without user interface and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201758454U (en) * 2010-04-27 2011-03-09 山东大学 Novel intelligent household system in the internet of things era
CN103888504A (en) * 2013-09-18 2014-06-25 苏州硕穗光机电科技有限公司 Host computer and slave computer in intelligent household system and communication method thereof
CN104113458A (en) * 2014-07-23 2014-10-22 海信集团有限公司 Mobile terminal and intelligent household appliance interconnecting method and device
CN104902474A (en) * 2015-04-14 2015-09-09 闪联信息技术工程中心有限公司 Method and device for establishing incidence relation between equipment without user interface and mobile terminal

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
《物流技术与应用》编辑部: "《中外物流运作案例集》", 31 May 2006 *
姜妮,等: ""基于MQTT物联网消息推送系统"", 《网络新媒体技术,2014年06期》 *
曾强,等: "《电子商务的现状和未来》", 30 April 2004 *

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107154972A (en) * 2017-04-27 2017-09-12 上海斐讯数据通信技术有限公司 A kind of Internet of Things smart machine state synchronization method and system based on equipment snapshot
CN110622485B (en) * 2017-05-15 2021-12-24 瑞典爱立信有限公司 Method and node for theme processing in MQTT network
CN110622485A (en) * 2017-05-15 2019-12-27 瑞典爱立信有限公司 Topic processing in MQTT networks
CN113099499A (en) * 2017-12-15 2021-07-09 深圳市大疆创新科技有限公司 Wireless communication method, device and system
CN108540554A (en) * 2018-04-10 2018-09-14 天津科技大学 Based on MQTT agreements to the control method of Intelligent hardware device
CN108965447A (en) * 2018-07-27 2018-12-07 四川爱创科技有限公司 The method and system that data are acquired and remotely controlled
CN109088723A (en) * 2018-10-26 2018-12-25 四川长虹电器股份有限公司 A kind of long-range control method based on MQTT agreement
CN109088723B (en) * 2018-10-26 2021-08-06 四川长虹电器股份有限公司 Remote control method based on MQTT protocol
CN109756417B (en) * 2019-01-04 2022-08-30 平安科技(深圳)有限公司 Offline message distribution method, server and storage medium
CN109756417A (en) * 2019-01-04 2019-05-14 平安科技(深圳)有限公司 Offline message distribution method, server and storage medium
US11108890B2 (en) 2019-04-10 2021-08-31 Advanced New Technologies Co., Ltd. Management client and device monitoring
WO2020207091A1 (en) * 2019-04-10 2020-10-15 创新先进技术有限公司 Management client, and device monitoring system and method
CN111865754A (en) * 2019-04-30 2020-10-30 桂林电子科技大学 MQTT-based remote monitoring method and system
CN110266810A (en) * 2019-07-03 2019-09-20 Oppo广东移动通信有限公司 Message receival method, equipment and storage medium based on MQTT agreement
CN110266810B (en) * 2019-07-03 2022-03-29 Oppo广东移动通信有限公司 Message receiving method, device and storage medium based on MQTT protocol
CN110417499A (en) * 2019-08-13 2019-11-05 沈阳风驰软件股份有限公司 Platform regional broadcast system based on MQTT agreement
CN110390753A (en) * 2019-08-30 2019-10-29 金瓜子科技发展(北京)有限公司 A kind of method, apparatus, storage medium and electronic equipment controlling gate
CN110635970A (en) * 2019-10-10 2019-12-31 武汉普利商用机器有限公司 Internet of things equipment online state identification method, online information platform and server
CN113593720A (en) * 2020-04-30 2021-11-02 京东方科技集团股份有限公司 Remote consultation control method and system, computer equipment and medium
CN111770143A (en) * 2020-06-16 2020-10-13 南京东源磐能能源科技股份有限公司 Data breakpoint continuous transmission scheme based on Mqtt protocol
CN112104720A (en) * 2020-09-03 2020-12-18 国电南瑞科技股份有限公司 MQTT double-Broker data interaction method and system suitable for edge Internet of things terminal
CN112104720B (en) * 2020-09-03 2024-04-26 国电南瑞科技股份有限公司 MQTT double-Broker data interaction method and system suitable for edge internet of things terminal
CN112261088A (en) * 2020-09-27 2021-01-22 华数传媒网络有限公司 Set top box remote control method
CN112261088B (en) * 2020-09-27 2022-11-15 华数传媒网络有限公司 Set top box remote control method
WO2022116760A1 (en) * 2020-12-04 2022-06-09 珠海格力电器股份有限公司 Internet of things device monitoring method, server, and internet of things device
US12052154B2 (en) 2020-12-04 2024-07-30 Gree Electric Appliances, Inc. Of Zhuhai Internet of things device monitoring method, server, and internet of things device
CN114826979A (en) * 2022-04-07 2022-07-29 中国联合网络通信集团有限公司 Network link quality obtaining method, device, system, equipment and storage medium
CN114826979B (en) * 2022-04-07 2023-08-15 中国联合网络通信集团有限公司 Network link quality acquisition method, device, system, equipment and storage medium
CN114785850A (en) * 2022-05-07 2022-07-22 北京卡特加特智能科技有限公司 Scene linkage synchronization method and system

Similar Documents

Publication Publication Date Title
CN106385410A (en) Intelligent household appliance control system based on MQTT
CN105450779B (en) The method of one household appliance connection multiserver
CN103873472A (en) Method for automatically having access to network
WO2007063408A2 (en) System and method for using web syndication protocols as an out-of-band upnp service discovery system
CN103095749A (en) Method and system used for achieving discovery of cross-network-segment equipment
CN109586958B (en) Configuration management method for dual-system device and dual-system device
CN105227398A (en) Long method of attachment, system and its apparatus, terminal are shared in multi-service
CN113783961B (en) Remote terminal management method, device, computer equipment and storage medium
CN107454184B (en) Method for establishing stable network connection between Android client and server
CN107508916B (en) Server link management method for intelligent robot
CN103516708A (en) Equipment control method and system based on XMPP
CN106411713B (en) State notification method and server
CN101557296A (en) Method of quick recovery after break of multicast service, device and gateway device
CN104009961A (en) PPPoE session ID distribution method and equipment thereof
CN113472810A (en) Method and system for SOCKET communication based on TCP/IP protocol
CN112039966A (en) Method, program and system for updating online state of client based on ActiveMQ
CN107347110A (en) Intelligent terminal tele-control system
CN107634929A (en) Method for processing business and device
CN101436953B (en) Management method and processing module for on-line announcement message of network appliance
CN115665220A (en) Customer premises equipment management system
CN103873335B (en) Dialing method of terminal equipment, and access equipment
CN112188301B (en) Communication method, apparatus, system, terminal, and computer-readable storage medium
CN101800667A (en) Alarm message transmitting method, network equipment and alarm system
CN109379443A (en) A kind of implementation method of the Distributed Message Queue of internet of things oriented
CN106817149B (en) Signal control method based on power line communication and server thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170208