The convergence of wireless communications, embedded computing, and smart sensors enables us to have greater visibility into the natural world and our activities. These technologies are the foundation for wireless sensor networks( WSN ). Wireless sensor network consumes most of its energy during the wireless communication, so data aggregation is needed to reduce the high redundancy of the data in wireless sensor network.The author put forward a data aggregation model for the supermarket category system. The hardware of this model includes tow parts: The RFID( Radio Frequency Identification ) part which collect the raw information of the merchandise and the WSN node part which buildup the wireless sensor networks and take response of the data communication. Based on this, a data aggregation soft ware is realized.Based on TinyOS, which is an open-sourced wireless sensor network operating system, author establishes a model of data aggregation. It is composed of a DataGeneraiongM model which collects the raw RFID data, a DataLogicM model which deals with the data aggregation logic and a SendQueueM model which manages the data sending issue. These models work differently form the cluster heads and the other nodes.In the end, author tests the whole system with generated raw material, which proves that this model makes data aggregation be true. |