no don't go in that direction, just calculate the time radio itself spent in either of these states, look into my code, in the CSMACA component, you will see how I am using the Anlyzer component to calculate these times.
On Tue, Sep 18, 2012 at 5:13 PM, Han Bin <[email protected]> wrote: > > > wasif masood wrote: > > > > It should not be a problem to port it, well, It has been some time that I > > haven't used it so I am not sure whether it is the final copy that > > I evaluated, so for you, please go through it, understand it and please > do > > let me know if you see any anomalies. > > > > Thank you, Wasif. It's very useful for us. At this time, maybe TinyOS does > not provide any energy profiling mechanism to measure the energy > consumption. So the best way is that we calculate the duration time when > motes work in sending/receiving and idle states then multiply by the > consumed current and voltage to get energy consumption. For the sending > duration time, we can measure the time when AMSend.send() is called until > the time AMSend.SendDone is signaled. > But how to calculate the receiving duration time for each packet? > because I don't know what is the actual time when mote receives the packet > at physical layer, except the time mote has finished receiving the packet > (AMReceiverC.Receive() is signaled) > > Thanks, > Han Bin > -- > View this message in context: > http://old.nabble.com/Energy-consumption-on-Telosb-tp34443559p34447722.html > Sent from the TinyOS - Help mailing list archive at Nabble.com. > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- Wasif Masood
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
