Font Size: a A A

The Research And Application Of Real-time Control Technology Of Smart Appliances Based On Wechat Platform

Posted on:2017-07-24Degree:MasterType:Thesis
Country:ChinaCandidate:Z LiuFull Text:PDF
GTID:2322330533460539Subject:Electrical engineering
Abstract/Summary:PDF Full Text Request
At present,smart appliance is in a stage of development,and in order to seize the opportunity to become the rule makers,domestic and foreign enterprises regardless of size have launched their own smart products.The melee of smart appliance market makes APP applications of operating smart appliances emerge in an endless stream and these APPs cannot be compatible,which has seriously hindered the development of smart appliance.Therefore,this paper puts forward the solution of smart appliances real-time control based on the WeChat platform.Although the WeChat platform has provided the function of networking connectivity for smart appliances,there are rigid rules on it for smart devices' specifications,data,and related parameters,which greatly reduce the flexibility of WeChat products.At the same time,WeChat hardware platform is still in the developing stage,and a variety of problems often arise on the platform.Based on the above situations,this paper decides to use WeChat as a client for user to operate device,and set up a set of smart appliances real-time control system,and selectively absorb some functions of WeChat hardware platform so as to achieve the smart appliances control effect based on WeChat platform.To achieve this control system,the subject has done the following work:(1)Adopt Nginx and Redis applications to build proxy server and database server of the system,and make them meet the needs of the entire background server system development through the configuration of related parameters.(2)Use Express.js as the basic framework to build the Web server to achieve file transfer/management from server to client.At the same time,the Web server provides information query and management services to the WebAPP client.(3)Use MQTT message queuing telemetry Transport protocol as the communication protocol of the device,and achieve real-time communication from device to the device server based on Pub/Sub message model of the protocol.The control / access interface of the device on the device server is the basis for the system to realize the real-time control.(4)Establish docking application server for the device server,and achieve users' management of device control authority through the application server.The application server can open the interface of Http and Websocket two kinds of protocols simultaneously,and the two interfaces can realize the same function to the outside.Compared with the Http protocol,Websocket protocol can carry out full-duplex real-time communication.Therefore,Websocket interface is mainly used in the practical application,and Http interface is only used in some special network environment.(5)The development of the WebAPP of WeChat client is based on HTML5,CSS and JavaScript three languages.And WebAPP realizes the real-time control of the device through OpenAPI interface of the application server.
Keywords/Search Tags:WeChat, Websocket, Cloud Server, Node.js
PDF Full Text Request
Related items