简要介绍TinyOS 2.x和TinyOS 1.x的联系和主要区别;分析了TinyOS 2.1的仿真环境TOSSIM系统结构和仿真原理.针对目前TOSSIM还不支持能量监测这一问题,以一个监测移动物体运动的仿真程序为例,通过在仿真程序中检查仿真节点的剩余能量比率的办法,提出一种基于节点的能量监测模型.经过仿真验证,该模型能有效监测到全网各节点能量状况,并能估计网络的生命周期.%Aiming at the disadvantage of TOSSOM that does not support energy monitoring,an energy monitoring model is put forward. The relation and difference between TinyOS 2. x and TinyOS 1. x are introduced, and the system architecture and simulation theory of TOSSIM are described. Take a simulation program which can moniter the movement of amoving target as an example,by checking the ratio of remaining energy in simulation program,an enersy monitoring model based on node is proposed. The experimental results indicate that the model can effectively monitor the energy status of each nodes in the entire network and estimate the network lifetime.
展开▼