# [Tinyos-help] Changing Sampling Rate For MDA300

Jeremiah D. Jazdzewski jazdz007 at umn.edu
Tue Sep 13 15:32:04 PDT 2005

Martin,

Thanks for the help, but I'm still a little confused.  When I search for
that header, I get 2 mda300 instances of it on my computer.
One is located in:
C:\Program Files\Crossbow\Day 1's Firmware\XSensorMDA300.
The other is located in:
C:\tinyos\cygwin\opt\tinyos-1.x\contrib\xbow\beta\apps\XSensorMDA300.

I gather that the first was from the workshop in June and the second was
the original beta testing version from when I originally installed.  Am
I right in thinking that there is no way to change the header file value
for the xsensor_sample_rate constant and still have it work in
moteview's programming gui?  Is this because moteview uses precompiled
xsensor applications in the gui?  So does this mean that I need to
install my modified sample rate xmesh app for the mda300 using cygwin
which apps should I make and flash to the motes to reflect this header
change?

Also, let me just run this by you.

I have 3 motes, 1 mda300, and a stargate.  I am setting up a system
where 1 mote has the mda300 and will hop its packets to the second mote
which has no sensor and just acts as a go between, which will then hop
it to the base mote on the stargate to be logged in a database.  Am I
correct in thinking that I need to install XSensorMDA300 on all 3 motes,
or does the lone mote #2 and/or the stargate mote need to run a
different app?

-Jeremiah Jazdzewski

mturon at xbow.com wrote:

> Hi Jeremiah,
>
>
>
> The XMesh apps all have a "appFeatures.h" file that has a constant
> defined for the default update rate.
>
>
>
> #define XSENSOR_SAMPLE_RATE  20000
>
>
>
> This gets passed into the call to start the application timer:
>
>           call Timer.start(TIMER_REPEAT, XSENSOR_SAMPLE_RATE);
>
>
>
> You can change it directly - it is in milliseconds.  The above example
> is a 20 second interval.
>
>
>
> Note: MOTE-VIEW 1.2 (to be released soon) will allow you to change the
> update rate dynamically from the GUI.
>
>
>
> Martin
>
> __________________________________________________
> Martin Turon  |  Crossbow Technology, Inc.
>
> ------------------------------------------------------------------------
>
> From: tinyos-help-bounces at Millennium.Berkeley.EDU
> [mailto:tinyos-help-bounces at Millennium.Berkeley.EDU] On Behalf Of
> Jeremiah D. Jazdzewski
> Sent: Monday, September 12, 2005 9:53 AM
> To: tinyos-help at Millennium.Berkeley.EDU
> Subject: [Tinyos-help] Changing Sampling Rate For MDA300
>
>
>
> Hi all,
>
> I am using a MDA300 with a MICA2 and I am running the Xmesh program on it.
>
> I am not a programmer, but I need to know how to edit the xmesh
> program to change the sampling rate at which the MICA2 takes data from
> the MDA300.
>
> If a programmer could tell me what source codes need to be edited and
> what numbers need to be changed in the code, I would very much
> appreciate it.
>
> Thanks
>
> -Jeremiah Jazdzewski
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20050913/a4de08e4/attachment.htm