Thank you very much Manjunath, I'll have a look and try to replicate that in TinyOS 2 within the cc2420_tkn driver.
Regards, Pablo 2010/11/22 Manjunath Doddavenkatappa <[email protected]> > > It is possible to measure the time that cc2420 consumes in different > states. This is previsouly done in Tinyos-1.x for mica2 and micaZ nodes in > the implementation of SMAC and SCP MAC protocols. You can download the code > from the link http://www.isi.edu/ilense/software/scpmac/. > > The file that contains the related code is platform/micaz/PhyRadioM.nc, > This file implements the physical layer that in turn uses CC2420 components. > > The idea is simple, there is a routine called updateEnergy() in the file > which is called every time before you change the radio to a new state. On > being invoked, the routine updates the time spent in the last state. This > way it keeps track of time that radio spends in every state. > > BTW, I am not sure how easy to replicate this in the latest versions, you > must be aware of all the places where a change in the radio state is > invoked. So that you can call updateEnergy() before the change. > > Regards, > Manjunath D > > > ################################################################################################################ > > *************************************************************************************************************** > > > On Mon, 22 Nov 2010, Pablo Marcos wrote: > > Hi all, >> >> It's been almost a week and nobody replied. Someone knows anything about >> this? >> >> Thank you very much. >> >> Regards, >> Pablo >> >> 2010/11/16 Pablo Marcos Oltra <[email protected]> >> >> Hi all, >>> >>> I would like to know how much energy my node is consuming. In order to do >>> that, I was planning on measuring how much time the CC2420 is in each >>> mode >>> (sleep, idle, tx or rx) and know how much energy is using by knowing the >>> time it is in each mode and the data from its datasheet. >>> >>> Is that even possible? I mean, where could I collect that data? I imagine >>> from the driver in $TOSROOT/chips/cc2420, but I have been reading files >>> for >>> a while and I have not been able to find something useful so that I could >>> get the time from higher layers. >>> >>> Any ideas are very welcome. Thanks in advance. >>> >>> Regards, >>> Pablo >>> >>> >>
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
