Hi Omar!

On Tue, Jun 1, 2010 at 1:25 PM, Omar Bouzid <[email protected]> wrote:
> Hi Miklos,
>
> Regarding the sampling rate I tried to implement the "SoundLocalizer" 
> application developed in Chapter 13 of "TinyOS Programming" on MICAZ with 
> MTS300 sensor board and it works fine. This application as it mentioned in 
> the book uses ADC free run mode and samples at a high frequency 
> (ATM128_ADC_PRESCALE_16). This might mean that there shouldn't be a problem 
> if we implement MicReadStreamTest application on MICAZ. Even that I tried to 
> reduce the sampling rate in this application but I still didn't receive any 
> response. Also, I tried to trace the execution of MicReadStreamTest 
> application it seems to be that the readDone is not signalled which makes the 
> rest of the code doesn't work properly. So, do you have any suggestion 
> regarding this problem? BTW should I leave two lines   CFLAGS += 
> -I$(SZTETOSDIR)/lib/Atm128FastAdc
>        CFLAGS += -I$(SZTETOSDIR)/lib/
> in Makefile without any change?

The SZTETOSDIR environment variable should point to a complete
download of the szte-wsn repository. As you can see our code uses the
Atm128FastAdc library, so that should be in your path, otherwise it
will use the old adc implementation which will not work.

Miklos

>
> Your help is highly appreciated.
> Thanks,
> Omar
>
>>-----Original Message-----
>>From: [email protected] [mailto:[email protected]] On Behalf Of Miklos
>>Maroti
>>Sent: 27 May 2010 13:22
>>To: Omar Bouzid
>>Cc: [email protected]
>>Subject: Re: [Tinyos-help] ADC free run mode
>>
>>Hi Omar,
>>
>>You should reduce the sampling rate considerably on the MicaZ. It
>>works on IRIS motes where the radio stack does not disable the
>>interrupts for more than 1-2 microseconds. No, there is no readme yet,
>>maybe we will put together a technical report on it.
>>
>>Miklos
>>
>>On Thu, May 27, 2010 at 1:47 PM, Omar Bouzid
>><[email protected]> wrote:
>>> Hi Miklos,
>>>
>>> Is there any README file that explains how to use these applications?,
>>cause I have downloaded them on the MICAZ with mts300 sensor board and I
>>haven't got any error while executing make command, but I got no
>>response even the leds didn't blink. I am not sure if I should change
>>any setting in the Makefile.
>>>
>>> I appreciate any help I advance.
>>>
>>> Thanks,
>>> Omar
>>>
>>>>-----Original Message-----
>>>>From: [email protected] [mailto:[email protected]] On Behalf Of Miklos
>>>>Maroti
>>>>Sent: 27 May 2010 10:04
>>>>To: Omar Bouzid
>>>>Cc: [email protected]
>>>>Subject: Re: [Tinyos-help] ADC free run mode
>>>>
>>>>Hi Omar!
>>>>
>>>>Here:
>>>>
>>>>http://szte-wsn.cvs.sourceforge.net/viewvc/szte-
>>>>wsn/tinyos/apps/MicReadStreamTest/
>>>>
>>>>Miklos
>>>>
>>>>On Thu, May 27, 2010 at 10:48 AM, Omar Bouzid
>>>><[email protected]> wrote:
>>>>> Hi Miklos,
>>>>>
>>>>> Thanks a lot for your reply. I'll have a deep look on this library
>>but
>>>>I cannot find the MicReadStreamTest
>>>>> Application that you have mentioned in this email. So, please let me
>>>>know where I can find it.
>>>>>
>>>>> Best regards,
>>>>> Omar
>>>>>
>>>>>>-----Original Message-----
>>>>>>From: [email protected] [mailto:[email protected]] On Behalf Of
>>Miklos
>>>>>>Maroti
>>>>>>Sent: 26 May 2010 21:58
>>>>>>To: Omar Bouzid
>>>>>>Cc: [email protected]
>>>>>>Subject: Re: [Tinyos-help] ADC free run mode
>>>>>>
>>>>>>Hi Omar,
>>>>>>
>>>>>>This library modifies the default ReadStream implementation on the
>>>>>>atmega128 MCU to use in free running mode.
>>>>>>
>>>>>>http://szte-wsn.cvs.sourceforge.net/viewvc/szte-
>>>>>>wsn/tinyos/tos/lib/Atm128FastAdc/
>>>>>>
>>>>>>In the same repository you will see a sound recorder
>>MicReadStreamTest
>>>>>>application that uses this module to record sound at 17 khz and
>>stream
>>>>>>it to the base station (you will need a fast basestation).
>>>>>>
>>>>>>Best,
>>>>>>Miklos
>>>>>>
>>>>>>
>>>>>>
>>>>>>On Wed, May 19, 2010 at 4:24 PM, Omar Bouzid
>>>>>><[email protected]> wrote:
>>>>>>> Hi all,
>>>>>>> I want to know how can I use the ADC free run mode in tinyos-2.x
>>>>using
>>>>>>Micaz to sample continuously the mts310 microphone sensor? Or how
>>can
>>>>I
>>>>>>modify DetectorC code in the soundlocalizer application so that it
>>>>saves
>>>>>>the data sampled in a buffer rather doing threshold test?
>>>>>>>
>>>>>>> Your help is highly appreciated.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Omar
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Tinyos-help mailing list
>>>>>>> [email protected]
>>>>>>> https://www.millennium.berkeley.edu/cgi-
>>bin/mailman/listinfo/tinyos-
>>>>>>help
>>>>>>>
>>>>>
>>>
>

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

Reply via email to