WSN是理想的大范围野外观测数据采集方式,数据的自动入库是重要环节。提出了一种基于消息队列的WSN观测数据自动入库方法。详细讨论了该方法的设计思路、关键技术和实现。用消息队列实现数据接收程序和数据入库程序的异步通信,使二者解耦。用设计良好的数据格式屏蔽了数据源的差异性。实践表明,该方法稳定可靠,适应性强。
WSN is an ideal method for field observation data acquisition. Importing the data into database automatic is impor-tant. This paper proposed an automatic data warehousing approach based on message queue for WSN. Design, implementation and the key technique of this approach were discussed in detail. Data receiving program and data storage program asynchro-nous communicate using message queue, so that they are decoupled. The differences between data source was negligible by using well designed data format. Practice shows that this method is stable and reliable and it has a strong adaptability.