近几年空气污染愈发严重,空气质量问题不容小觑。本文设计并实现了基于订阅发布的空气质量监测系统,包括便携式、低功耗的传感器模块,发布订阅服务端系统和跨平台移动客户端。其中,底层传感器节点是以Arduino扩展板进行编程集成的,能够通过若干个感知设备对空气中CO、PM2.5、PM10、03、VOC、NO2、温湿度等进行监测。同时传感器节点和移动端能通过无线、有线、蓝牙等方式与发布订阅服务器系统进行通信,接收服务端推送的订阅或发布信息,移动端接收感知信息后,可实时动态展示空气质量信息和城市天气信息,以便用户随时监测空气质量。
In recent years, air pollution has become increasingly fierce, which can’t be ignored. This paper designs and implements an air quality monitoring publish-subscribe system. The system includes a portable, low power sensor module, a million concurrent server and a users’ friendly cross-platform client. Several kinds of gases such as PM2.5, PM10, 03, VOC, NO2, temperature and humidity are monitored. Sensors can communicate with the server through wireless or wired network, etc. At the same time, the Ardunio hardware is used to control these sensor nodes. The pub-lish-subscribe server can publish air quality information to users based on the subscription information. The mobile cli-ent can monitor the air quality and weather information at any time.