通过分析无线传感器网络的特性及其并发应用的特点,提出了一种新型消息中间件EventX,以便为实际应用提供高效节能的软件平台。首先定义了基于事件驱动的订阅模型,然后指出EventX的体系结构,并给出了根据时间、类型等对订阅进行分解的模型和算法,最后为低能量状态的节点设计了一种基于权重的贪婪决策算法。通过仿真测试,证明其能够减少网络数据传输开销,延长网络生存时间。
With the continuing advances in sensor networks and application design,appropriate middleware is needed to provide efficient service for concurrent applications according to the scarce resources and sensor energy.In this paper,we first define the event-triggered based subscription model,and then propose a novel message oriented middleware named EventX to fit the features of sensor networks and its applications.EventX implements an algorithm to analyse and decompose compound subscription according to type and time interval,and another weight information based greed algorithm for the low-power state of nodes.Simulation test results show that the EventX is capable to reduce the communication overhead and extend the lifetime of sensor networks.