[Tinyos-help] Adjusting the Data Sampling Rate of MicaZ
alvindarjit singh
alvindar86 at gmail.com
Tue Mar 31 00:46:02 PDT 2009
Hi guys,
I am using MIB520, MDA300 and two micaZs to form a simple mote that sends
data to my pc.
I am facing a problem whereby my mote sends data after every 2 seconds.
my intention is to program micaZ so that it would send readings from MDA300
every 1 minute when the input to ADC2 is >2.0 volts, and
every 2 minutes when the input to ADC2 is <2.0 volts.
I am using Programmer's Notepad 2 to modify the file XMDA300M.nc. And i
noticed that
the supporting file sensorboardApp.h has the following lines in the end of
its program
"...
#ifdef APP_RATE
uint32_t XSENSOR_SAMPLE_RATE = APP_RATE;
#else
#ifdef USE_LOW_POWER
uint32_t XSENSOR_SAMPLE_RATE = 184320;
#else
uint32_t XSENSOR_SAMPLE_RATE = 1843;
#endif
#endif
uint32_t timer_rate;
..."
which might explain why my mote sends back data every 2 seconds.
how can i modify codings of both or either one files to achieve my desired
sampling
pattern ?
your help is very much appreciated.
Thank you.
Best Regards,
Alvin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090330/b2233406/attachment.htm
More information about the Tinyos-help
mailing list