[Tinyos-help] Changing Sampling Rate For BSN

Joe Polastre joe at polastre.com
Tue Sep 13 09:23:20 PDT 2005


OscilloscopeRF sets the sample rate using a Timer.  Simply change the
value of the Timer, and then the Timer fires, it samples the ADC.

-Joe

On 9/12/05, van Best, Chris <chris.van.best at medtronic.com> wrote:
>  
> Hi, 
>   
> I have the same problem. Different with me is I'm using a BSN node running
> with the OscilloscopeRF program. 
> This application refers back to the MSP430 directory (as far as I know). I
> changed the apllication slightly so it now samples the ADC3-channel instead
> of the internal temperature sensor. 
>   
> Now I want to change the sample-rate to 200 Hz. But I have no idea where I
> can find the sample rate in the source-code. 
> Does anyone know where I can find this? 
>   
> Thanks, 
>   
> Chris
>  
>  ________________________________
>  From: tinyos-help-bounces at Millennium.Berkeley.EDU
> [mailto:tinyos-help-bounces at Millennium.Berkeley.EDU] On
> Behalf Of mturon at xbow.com
> Sent: Tuesday, September 13, 2005 7:37 AM
> To: jazdz007 at umn.edu; tinyos-help at Millennium.Berkeley.EDU
> Subject: RE: [Tinyos-help] Changing Sampling Rate For MDA300
> 
>  
>  
>  
> 
> 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 
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 
> 
>



More information about the Tinyos-help mailing list