基于Android的空调远程控制系统
2018-11-13王耀青解聪
王耀青 解聪


摘 要: 为了实现对于空调的远程控制,设计一种基于Android的空调远程控制系统。系统利用CC2530作为主控制器,结合红外学习技术、WiFi无线通信技术,扩展了对空调的控制方式。采用ZigBee终端模块实现对红外数据的采集、存储,同时通过Android客户端发送控制命令驱动ZigBee终端实现对于空调的远程实时控制。基于Android平台和异步socket技术设计出一款与云服务器进行通信的APP应用程序。测试结果表明,该系统通过APP应用程序实现了对空调的远程实时控制和温度的采集。该方案经济合理,易于实现,可以应用在其他的家电领域。
关键词: 远程控制; Android; 红外数据处理; 云服务器; 数据采集; socket技术
中图分类号: TN929.5?34 文献标识码: A 文章编号: 1004?373X(2018)22?0030?04
Abstract: An air conditioning remote control system based on Android is designed to realize remote control of air conditioner. In the system, the control mode of air conditioner is extended by taking the CC2530 as the main controller, and combining with the infrared learning technology and WiFi wireless communication technology. The ZigBee terminal module is used in the system to realize acquisition and storage of infrared data. The control commands are sent by the Android client to drive the Zigbee terminal, so as to realize real?time remote control of air conditioner. An APP application program communicating with the cloud server is designed based on the Android platform and asynchronous socket technology. The test results show that the system can realize real?time remote control and temperature acquisition of air conditioner by using the APP application program. The scheme is economic, reasonable, easy to be implemented, and can be applied in other home appliances.
Keywords: remote control; Android; infrared data processing; cloud server; data acquisition; socket technology
近年来,随着物联网的发展,家用电器的网络远程智能化控制技术的不断深入,以Internet为核心的控制方式正在逐步融入传统的控制方式。相对于传统的红外控制方式,远程控制方式可以远距离对家用设备实施控制,而不受物理距离的限制。本文提出一种基于Android手机并通过云平台连接家居网关的方式,实现了对于空调的远程实时控制。本系统结合传统的遥控器控制方式,可以方便地实现近距离与远程对空调的实时控制。
1 系统总体方案
整个系统由4个部分组成:Android客户端模块、云服务器模块、WiFi?ZigBee网关模块和ZigBee模块[1]。总体框架图如图1所示。
Android客户端模块作为控制终端,负责发送指令至云服务器模块以及接收系统反馈的网络数据,并作为终端显示在屏幕上。……
