摘要
针对智能家居系统中功能实现的便捷性问题,对智能家居系统控制实现的通信模块、数据库和消息通信格式等方面进行了分析与实现,从而设计了智能家居系统客户端。首先基于Android平台采用MVC设计模式将客户端的设计分为View视图、Activity控制层和逻辑功能部分;其次自定义客户端与嵌入式网关之间的数据消息格式,从而采用格式化的消息交互格式提高了系统的可扩展性和网络传输的可靠性;设计并实现了客户端的数据库,以便保存用户设置数据及传感器历史数据;对客户端与网关交互的Socket通信和HTTP协议通信进行了设计与实现。最后结合网关和无线传感网络节点对客户端功能进行了测试。研究结果表明,该客户端能够方便、快捷地实现各功能,符合预期要求。
Aiming at the convenience of the function realization in smart home, the communication module, database and the message format were designed and realized, thus the client was designed. Firstly, the client's development was divided into View part, Activity control and function module. Secondly, the message format was designed between the client and embedded gateway to improve the reliability of the network transmission. The database of the client was designed to save the data for the sensor history data. The Socket and the HTTP communication were designed and implemented that used for the interaction between the client and gateway. Finally, combining with gateway and wireless sensor network nodes, the control experiments of client were carried out. The results indicate that the client has a good effectiveness of the control function~
出处
《机电工程》
CAS
2014年第8期1086-1089,1102,共5页
Journal of Mechanical & Electrical Engineering