Just for the Radio:
If you are using the rfx library (tos/lib/rfxlink) you can simply enable
the TrafficMonitorLayer by adding CFLAGS+=-DTRAFFIC_MONITOR in your
makefile. Once enabled, add the TrafficMonitorLayerC component in your
app and use the TrafficMonitor interface which has the following functions:
getActiveTime()
getRxBytes()
getTxBytes()
the active time over the total time is the radio duty cycle, if the
power consumption in RX,TX and Idle Listening differ significantly, you
can use the rxbytes and txbytes (knowing the datarate of the radio) to
compute how much time the radio has been in RX and TX, then the Idle
listening is ActiveTime-RxTime-TXTime.
Hope it helps,
Ugo
On 01/16/2014 05:55 PM, Faisal Aslam wrote:
Thank you Eric for your reply.
We have meters that we could use to measure energy consumption.
However, we are looking for software solution so that we can present
duty cycles on remote third party networks and publish results. Doing
it on our own network with energy meter might not be acceptable for
the reviewers.
best regards,
Faisal
On Thu, Jan 16, 2014 at 4:26 AM, Eric Decker <[email protected]
<mailto:[email protected]>> wrote:
I do not know of any instrumentation in the existing code base
that provides for this.
What I've done in the past is we instrumented mcusleep by toggling
a pin that we could observe with an oscilliscope and watched the
duty cycle of our particular application.
If you have a rock solid time base you could also instrument by
capturing timing when you go to sleep and wake up.
None of the above takes into account any other hardware that you
may have running in parallel with the mote sleepage.
On Wed, Jan 15, 2014 at 5:09 AM, Faisal Aslam
<[email protected] <mailto:[email protected]>> wrote:
Hi,
We are working on a new collection protocol. We want to know
how energy efficient our protocol is by measuring motes duty
cycles. To accomplish this I could dig in the TinyOS code to
locate what should I change. However, it will save my time if
someone reply back with specifics.
Thanking you in anticipation.
best regards,
Faisal
_______________________________________________
Tinyos-help mailing list
[email protected]
<mailto:[email protected]>
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
--
Eric B. Decker
Senior (over 50 :-) Researcher
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
--
Ugo Maria Colesanti
Dipartimento di Ingegneria Informatica, Automatica e Gestionale "Antonio
Ruberti"
Sapienza Universita' di Roma
Via Ariosto 25, II floor, room A221
00185, Rome
http://wiserver.dis.uniroma1.it/cms/index.php/contacts/13-postdoc/4-ugo-colesanti
Phone: +39 06 77274056
Fax: +39 06 77274002
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help