Description: To support simulations of S-MAC and other energy-efficient protocols, we have extended the energy model in ns-2. The old energy model did not have a sleep state. We added the sleep state. In addition, we also added energy consumption during state transition from sleep to idle (active). To help analyzing energy consumption in different states, we enhanced the energy traces on individual states: sleep, idle, transmit and receive.
File list (Check if you may need any files):
cmu-trace.cc