05.01.2015 Views

Wireless Sensor Networks : Technology, Protocols, and Applications

Wireless Sensor Networks : Technology, Protocols, and Applications

Wireless Sensor Networks : Technology, Protocols, and Applications

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

EXAMPLES OF OPERATING SYSTEMS 279<br />

which would allow a trade-off between flexibility <strong>and</strong> performance. The network<br />

stack is realized with a st<strong>and</strong>ard API between layers. MANTIS implements flooding<br />

as a routing protocol <strong>and</strong> a simple stop-<strong>and</strong>-wait protocol for flow <strong>and</strong> congestion<br />

control [10.4]. The total code size of the kernel, scheduler, <strong>and</strong> network stack is<br />

smaller than 500 bytes <strong>and</strong> 14 kB flash. MANTIS supports certain advanced features,<br />

such as a multimodal prototyping environment for testing sensor networking<br />

applications, dynamic binary update-based reprogramming [10.5], <strong>and</strong> a remote<br />

shell <strong>and</strong> comm<strong>and</strong> server enabling the user to log in <strong>and</strong> inspect the sensor node’s<br />

memory <strong>and</strong> status.<br />

10.3.5 OSPM<br />

OSPM (or dynamic power management, DPM), proposed in [10.6], is directed at<br />

power management techniques. The general dynamic power management is<br />

based on a greedy algorithm that will switch the system to a sleep state as soon<br />

as it is idle. It considers the following factors [10.6]:<br />

Transitioning to a sleep state has the overhead of storing the processor state<br />

<strong>and</strong> shutting off the power supply.<br />

Waking up takes a finite amount of time.<br />

The deeper the sleep state, the less the power consumption will be lower <strong>and</strong><br />

the wake-up time will take longer [10.6].<br />

Then, based on a given event arrival model, transition time, <strong>and</strong> power consumption<br />

rate, it reduces the energy savings. If the energy savings is positive, it will<br />

trigger a state transition; otherwise, the current state is maintained. This adaptive<br />

shutdown algorithm is a trade-off between energy savings <strong>and</strong> the cost of delay<br />

<strong>and</strong> possibly missed events.<br />

10.3.6 EYES OS<br />

As indicated earlier, the operating system for WSNs should be very small in terms<br />

of memory requirement <strong>and</strong> coding, should enjoy power awareness, <strong>and</strong> should be<br />

capable of distribution <strong>and</strong> reconfiguration. EYES OS [10.7,10.8] uses an eventdriven<br />

model <strong>and</strong> task mechanism to realize these objectives. It works in a simple<br />

sequence as follows: perform a computation, return a value, <strong>and</strong> enter the sleep<br />

mode. The task can be scheduled using a FIFO-, priority-, or deadline-based<br />

approach (such as EDF), <strong>and</strong> is triggered by events in a nonblocking manner.<br />

EYES OS defines an application programming interface (API) locally <strong>and</strong> for the<br />

network components. The local information component provides functions such as<br />

access to sensor node data, availability of resources <strong>and</strong> their status, <strong>and</strong> setting of<br />

parameters or variables in sensor nodes. The network component provides functions<br />

to transmit <strong>and</strong> receive data <strong>and</strong> to retrieve network information. In summary, EYES<br />

OS realizes two groups of functions: those that can be executed at boot time to<br />

upload software module, <strong>and</strong> those that can provide node localization information.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!