[Tinyos-help] Sample period xmda300
Giri Baleri
mbaleri at xbow.com
Wed Dec 5 08:19:33 PST 2007
Also, if you want to conserve battery (since your data rates are low),
you can compile the app in low power mode by using "route,lp" flag in
the compile command.
By default, the lp apps sample and transmit data once every 3 minutes.
You can change this reporting interval by changing the
XSENSOR_SAMPLE_RATE variable as Harri described.
Giri
________________________________
From: tinyos-help-bounces at Millennium.Berkeley.EDU
[mailto:tinyos-help-bounces at Millennium.Berkeley.EDU] On Behalf Of
Siirtola Harri
Sent: Tuesday, December 04, 2007 11:05 PM
To: Elle Mills; tinyos-help at Millennium.Berkeley.EDU
Subject: RE: [Tinyos-help] Sample period xmda300
All you have to do is use
XSENSOR_SAMPLE_RATE = 307200
Remember, the value is binary milliseconds, so 307211/1024 = 300 = 5min.
Also note that the network seems to take much longer to form because
packets may be lost and your update interval is slow.
As for the other variables, I think they're jus delays from timer fired
event to start of sampling. They're set a bit apart to avoid races in
the sampling events.
Regards,
Harri
________________________________
From: tinyos-help-bounces at Millennium.Berkeley.EDU
[mailto:tinyos-help-bounces at Millennium.Berkeley.EDU] On Behalf Of Elle
Mills
Sent: Wednesday, December 05, 2007 6:05 AM
To: tinyos-help at Millennium.Berkeley.EDU
Subject: [Tinyos-help] Sample period xmda300
I hope someone can help me.
My aim is to make a small sensor network that samples every five
minutes.
Ive used the xmda300 as is and got it up and running but the sampling
rate is too high, I only need resolution to five minutes. To experiment,
I tried changing the timer_rate to 20000 but then the network does not
form. I get the correct readings at the interval of 20s but not multi
hop. Maybe im missing something, what is the difference between;
XSENSOR_SAMPLE_RATE, timer_rate, ANALOG_SAMPLING_TIME,
DIGITAL_SAMPLING_TIME, and MISC_SAMPLING_TIME?
Thankyou all so much
El
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20071205/c65db30f/attachment.htm
More information about the Tinyos-help
mailing list