相比于一般的嵌入式系统,无线传感器网络节点对操作系统的能量利用率、实时性和多任务并发等方面提出了更高的要求,针对这些特点,提出了基于事件驱动的无线传感器网络嵌入式实时操作系统;采用分层结构的设计思想,构建内存管理、事件管理和任务管理等模块化的操作系统组件,利用内存控制块动态链表,实现简易高效的内存管理;基于事件驱动和任务优先级,实现系统低功耗和抢占式的任务调度;实验结果表明,系统功耗低,响应速度快,实时性好.
Compared with the general embedded system,the operating system for wireless sensor networks is more constrained in the aspects of energy efficiency,real-time performance and multitasking.Being aimed at these features,a real-time operating system based on event-driven is proposed for wireless sensor networks application.A thought of hierarchical structure is adopted to build the modular system components which contain memory management,event management and task management.Simple and effective memory management is achieved using the memory control block dynamic list.The low power dissipation and preemptive task scheduling is implemented based on event-driven and task priorities.The experimental result shows that the system has low power consumption and good real-time quality.