[sim-wg] RE: PowerTOSSIM-2 for Mica2
Venkatesh S.
svenkat at cedt.iisc.ernet.in
Sun Sep 9 22:00:29 PDT 2007
The results that are shown up by AVRORA is for T1 executable code and I have not executed AVRORA for T2 yet.
--
Regards,
Venkatesh S
-----Original Message-----
From: Philip Levis [mailto:pal at cs.stanford.edu]
Sent: Mon 9/10/2007 9:56 AM
To: Venkatesh S.
Cc: Chad Metcalf; simwg
Subject: Re: PowerTOSSIM-2 for Mica2
On Sep 9, 2007, at 9:20 PM, Venkatesh S. wrote:
> Hello all:
>
> I apologize for reposting this mail since i had received a
> delivery report saying that the recipients didn't receive the mail.
>
> I have updated the CVS with the Power Extentions module under
> tinyos-2.x-contrib/cedt directory.
>
> Installation Instructions:
>
> To install, type "make install" at the shell prompt.
> To uninstall, type "make uninstall" at the shell prompt.
> Note:
> 1) It was tested using tinyos-2.0.2 version of tinyos. For
> previous versions, the files in cedt/tos/lib/tossim/energy/tos.h,
> cedt/tos/lib/tossim/tossim.c, cedt/tos/lib/tossim/tossim.h and cedt/
> tos/lib/tossim/tossim.i may have to be replaced with certain
> modifications. (Not tried myself yet!).
>
> Energy Estimation:
>
> The platform that is currently being supported is mica2.
>
> To compile type "make mica2 sim-energy" instead of "make mica2 sim".
>
> Once the application is compiled, create an object
> ee=t.newEnergyEstimator() where t is tossim object.
> To get the EnergyEstimation of each node, call ee.getNodeEnergy
> (NODE_ID), where NODE_ID are the node id's that are being
> simulated. This call, will print the energy estimated over the
> time of the simulation to a file Node_(NODE_ID)_Energy within the
> current directory.
>
> An example python script to get the energy estimate is in apps/
> tests/TestMCU/test.py
>
> Also make sure to provide the mica2 rssi values as the noise file
> to the simulator.
>
> PowerTOSSIM-2 results for TestMCU application:
>
> To test the various states of the CPU in T2, I wrote a simple
> application, which will turn-on and turn-off the radio for 5
> seconds. During this time, MCU will go to IDLE state, as SPI will
> be enabled. Once the radio is OFF, I sense for a ADC channel.
> During this, since ADC will be enabled, MCU will go to ADC_NR
> state. For another 5 second time, there will be only Timers
> enabled, and based on the the TIMER value, the MCU goes to
> POWER_SAVE mode.
>
> The same application was implemented in T1. I have attached the
> power results that I measured with respect to T1, AVRORA and T2.
>
> As we see from the attachment, we find that T2 results in less
> power consumption when compared to T1. I feel that the power
> management in T1 and T2 are different (correct me if I am wrong Phil).
They're definitely different. What results are AVRORA for? The T1
executable, or the T2? Basically, I'm trying to get a sense of how
accurate the T2 power estimation is.
>
> I have also attached the tarball of T1 application that I have
> used. T2 application is updated in CVS apps/tests/TestMCU
>
>
> Phil, I would like to know how to move on for packet level
> simulation based on the SNR-PRR curve. I have some measurement
> results of PRR versus SNR for CC1000 Radio, but have no idea on how
> to incorporate to existing TOSSIM SNR-PRR based simulation.
>
In theory, you should be able to take the curves from Son et al. and
Zuniga et al. (from USC). The tougher part is the preamble and ack
timing. If you're simulating at the SPI level then what you really
want to do is simulate BER on the bytes going by. A good place to
start is with the standard TOSSIM packet model and how it handles
packet delivery. If you have specific questions, I'm happy to answer
them, but I fear that trying to write a tutorial on the code could
balloon to something that would take days.
Phil
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/sim-wg/attachments/20070910/9742a714/attachment.htm
More information about the Sim-wg
mailing list