摘 要
随着社会、经济水平的发展,人们对环境安全也越来越重视,尤其是室内环境的安全。一些特定的场合对环境的要求比较高,例如仓库、工厂等,需要检测是否发生火灾,是否有毒气体超标等。此时,如果有一个可以实时监控环境情况的系统就可以保证一些安全隐患早发现早治理,对保护一些财产人身安全等起到至关重要的作用。为了使监测环境更加方便,本课题结合现在比较热门的Android手机系统设计了一个可以移动监测环境情况的系统。该系统以Android为客户端,小车上搭载的ARM开发板为服务端,服务端上装有各种传感器(包括温度和烟雾传感器等)以及ZigBee模块。系统利用无线网卡实现通信,Android手持终端可以通过WiFi网络与小车上的ARM开发板进行通信,而ARM开发板连接的ZigBee模块可以获取定点位置的ZigBee模块上的传感数据。这样不仅可以实现小车流动巡逻监测环境也可以实现监测定点位置的环境情况。
本系统在软件方面,首先研究并实现了两个通信。一个是ARM开发板与Android手机端的通信,另一个是两个ZigBee模块之间的组网通信。接着在eclipse环境下利用Android SDK进行Android手机客户端程序的编写。软件功能包括用户登录,视频采集,一些传感量的采集,小车手动控制与自动巡逻等。之后在ARM开发板下进行各种驱动的编写,包括温度、烟雾传感器以及小车驱动的编写等。接着编写ZigBee模块上的传感器采集程序。最后,本系统在手持终端上进行测试,系统稳定并且较好的实现了预期的功能,具有比较高的实用价值。
关键字:Android,ARM,ZigBee,智能小车
Environmental Monitoring System Based on Wireless
Mobile Android Platform
(Software Design)
Abstract
With the development of social, economic level, people are more and more attention to environmental safety, especially the safety of the indoor environment. Certain occasions relatively high demands on the environment, such as warehouses, factories, etc., need to detect whether a fire occurs, whether toxic gases such as excessive. At this point, if there is a real-time system monitoring environmental conditions can guarantee some security risks early detection and early treatment, to protect personal safety, such as some property plays a crucial role. To make it easier to monitor the environment, this project combines more popular Android phone system designed a system for mobile monitoring environmental conditions. The system Android client and a small car is equipped with ARM development board for the server, the server is equipped with various sensors (including temperature and smoke sensors, etc.) and ZigBee module. Communicate using a wireless LAN system, Android handheld terminal can communicate via WiFi network with the small car ARM development board, and ZigBee module ARM development board connected to the sensing data can get fixed position ZigBee module. Not only can the car mobile patrols to monitor the environment can also achieve environmental monitoring point location.
On the software side of the system, first studied and implemented two communications. One is the communications ARM development board with Android phone side, the other is the set of network communication between two ZigBee modules. Then, use Android SDK for the preparation of Android mobile client program in the eclipse environment. Software features include user login, video capture, capture some of the sensing volume, manual control and automatic car patrols. After ARM development board in the preparation of various drivers, including temperature, smoke sensors and the car driven preparation and so on. Then write sensor acquisition program ZigBee module. Finally, the system is tested on a handheld terminal, and a better stability of the system to achieve the desired function, with high practical value.
Keywords: Android, ARM, ZigBee, Smart car