[Tinyos-help] ADC sampling rate

Muhammad Azhar leo_az_83 at hotmail.com
Sun Oct 7 21:03:10 PDT 2007


My apologies, there was some error in the data shown below.  The actual value is actually:
 
setSamplingRate(i)
i = 0 & 1 -> no response
i = 2 -> 0 samples received
i = 3 -> 8 samples received
i = 4 -> 7 samples received
i = 5 -> 5 samples received
i = 6 -> 3 samples received
i = 7 -> 2 samples received
 
   Would be great if anyone can tell me what might have gone wrong (I have not changed the implementation of VU's timer just for your info - and I made sure that the "original" micaz folder was renamed micaz2, and the one used for acoustic ranging is called micaz - hence, typing "make micaz" should point to the correct directory for acousting ranging).
 
Regards,
Azhar


From: leo_az_83 at hotmail.comTo: tinyos-help at Millennium.Berkeley.EDUSubject: [Tinyos-help] ADC sampling rateDate: Sun, 7 Oct 2007 06:14:54 +0000




Hi all,    I understand that the timer used for acoustic ranging done by VU is somewhat different from the original implementation.  I've used the timer provided by VU, but I seem to run into problems in obtaining the correct quantity of data when doing acoustic ranging using micaz motes on TinyOS 1.1.15.   As a first step, I decided to see how many samples are actually returned by OutsideRangingSensorM (i.e. I used a counter each time bufferIndex was reset).  Hence, in one set of 16 chirps, the counter should return me 16.  However, each time a set of 16 chirps has been sent, the counter returns me a value of 3.   As a next step, I reduced the implementation to such that only one set of 16 chirps was sampled each time - again it returns me 3 samples.   Since this program uses ADC.getContinuousData(), I thought that the sampling rate for this ADC was too slow - hence in MicM, I explicitly called ADCControl.setSamplingRate(0) [as this should be the fastest] in StdControl.start(), but unfortunately, it returned 0 samples when I tried running the program.  I also tried it out with different sampling rate and this was what I got: 0,1 - 0 samples received2 - 8 samples received3 - 7 samples received4 - 5 samples received5 - 4 samples received6 - 2 samples received7 - 2 samples received    Thus, I'm quite lost as I can't seem to get all the 16 chirps to be sampled.  Any suggestions? Thanks and best regards,Azhar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20071008/42b0548f/attachment.htm


More information about the Tinyos-help mailing list