Thanks otsuka,

I modified the TIME_SCALE and MAX_SAMPLERECORDS value.
Now I'm able to collect data until 1000Hz.


Ing. Alessandro Balvis

-------------------------------------------
Centro Ricerche ENEL - Pisa
[EMAIL PROTECTED]
-------------------------------------------

-----Messaggio originale-----
Da: otsuka takuya [mailto:[EMAIL PROTECTED] 
Inviato: martedì 21 novembre 2006 16.12
A: Balvis Alessandro (EXT DP TOS)
Cc: [email protected]
Oggetto: Re: R: [Tinyos-help] 2kHz on MDA300

Hi,

http://www.ne.jp/asahi/nature/jp/tinyosMDA300.htm
A report from this site says the MDA300 can adc at 100Hz by setting 
ANALOG_SAMPLING_TIME to 1 and TIME_SCALE to 10. Note that Not by setting 
ANALOG_SAMPLING_TIME to 0.1 and TIME_SCALE to 100.
You should also comment out function calls of unnecessary adc ports and set 
MAX_SAMPLERECORD to smaller value in the sensorboard.h according to the site.
I'm not sure you can do adc at 2kHz by this way....

http://www.ne.jp/asahi/nature/jp/MDA300details.htm
This also says MDA300 has ADS7828EB and its datasheet says it achieves 50kHz 
sampling rate. 

http://www.ne.jp/asahi/nature/jp/
I think this site is useful but only in japanese. Hope you have someone who 
speak japanese around you....

> Thanks for the advice,
> but changing that value works and I tested that 1 correspond to 1/10 of 
> second (10Hz), like the Crossbow support says.
> I tried smaller value hatn 1, for example 0.1, but it doesn't work, tha 
> application works always to 10Hz, it seems can't recognize smaller value.
> I noted that in the SamplerM.nc there is a getcontinuousData command not 
> implemented. I wrote to the author (Mohammad Rahimi) asking if it's possible 
> implement that command, but he didn't answer me.
>  
> It's a long time I'm working with the MDA300 and MDA320 (with the xbow 
> devices, in fact...) and with the DAQ I tried different ways.
>  
> I think that is necessary to write something at the component level.
>  
> Ing. Alessandro Balvis
> -------------------------------------------
> Centro Ricerche ENEL - Pisa
> [EMAIL PROTECTED]
> -------------------------------------------
> 
> ________________________________
> 
> Da: Tony Han [mailto:[EMAIL PROTECTED]
> Inviato: luned・20 novembre 2006 16.45
> A: Balvis Alessandro (EXT DP TOS)
> Cc: [email protected]
> Oggetto: Re: [Tinyos-help] 2kHz on MDA300
> 
> 
> I am not sure if their hardware support higher data rate, but in 
> XSensorMDA300M.nc, you can try to change  ANALOG_SAMPLING_TIME to a small 
> value, also, in the SampleM.nc, change TIME_SCALE to 1. this will increase 
> your sampling rate as well as data transfer rate. 
> 
> Tony
> 
> 
> On 11/20/06, Balvis Alessandro (EXT DP TOS) <[EMAIL PROTECTED]> wrote: 
> 
>       Hy,
> 
>       I would know if someone can me help for implement a function to sample 
> with MDA300 and MicaZ at 2kHz on the analog channel (or the differential). I 
> asked to Crossbow, but they answered me that the hardware is capable to work 
> at that rate, but they haven't developped the driver. 
> 
>       I tried to see the entire components in the MDA300 driver directory, 
> but I'm not very able to modify some of it. Crossbow said me too, that I need 
> to modify only the Sample driver. I checked only that the max sampling rate 
> is 10Hz passing the "interval argument" to the getSample command. 
> 
>       I searched some pre-definied value (for example something like a 
> pre-scaler) to modify the clock rate of the ADC, but without results.
> 
>       Any kind of advice will be appreciated. 
>       Thanks. 
> 
>       Ing. Alessandro Balvis
> 
> 
> 
>       PS: I post the Crossbow answer 
>       "Most of our XMesh based apps are geared towards low power, low data 
> rate. We don't have anything that is tested for data rates >3 Hz. You can 
> certainly try to modify the XSensorMDA300 app and see if you can get it to 
> work at 10Hz rate. The MDA300 hardware is capable of sampling up to 2 kHz" 
> 
>       ------------------------------------------- 
>       Centro Ricerche ENEL - Pisa 
>       [EMAIL PROTECTED] 
>       -------------------------------------------
> 
> 
>       _______________________________________________
>       Tinyos-help mailing list
>       [email protected] 
>       
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-h
> elp
>       
>       
> 
> 

--
otsuka takuya <[EMAIL PROTECTED]>


_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to