[Tinyos-help] Sample period xmda300

Siirtola Harri Harri.Siirtola at vtt.fi
Tue Dec 4 23:05:01 PST 2007


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/1b2b0657/attachment.htm


More information about the Tinyos-help mailing list