[Copfilter] Copy of quarantined email - *** SPAM *** [9.2/5.0] [Tinyos-help] ADC sampling rate

alessandro.turella at venetaengineering.it alessandro.turella at venetaengineering.it
Mon Oct 8 01:11:41 PDT 2007




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 received
2 - 8 samples received
3 - 7 samples received
4 - 5 samples received
5 - 4 samples received
6 - 2 samples received
7 - 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
<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
<BLOCKQUOTE>
<BLOCKQUOTE>
Hi all,<BR>
&nbsp;<BR>
&nbsp;&nbsp; I understand that the timer used for acoustic ranging done by VU is somewhat different from the original implementation.&nbsp; 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.<BR>
&nbsp;&nbsp; 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).&nbsp; Hence, in one set of 16 chirps, the counter should return me 16.&nbsp; However, each time a set of 16 chirps has been sent, the counter returns me a value of 3.<BR>
&nbsp;&nbsp; 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.<BR>
&nbsp;&nbsp; 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.&nbsp; I also tried it out with different sampling rate and this was what I got:<BR>
&nbsp;<BR>
0,1 - 0 samples received<BR>
2 - 8 samples received<BR>
3 - 7 samples received<BR>
4 - 5 samples received<BR>
5 - 4 samples received<BR>
6 - 2 samples received<BR>
7 - 2 samples received<BR>
&nbsp;<BR>
&nbsp;&nbsp; Thus, I'm quite lost as I can't seem to get all the 16 chirps to be sampled.&nbsp; Any suggestions?<BR>
&nbsp;<BR>
Thanks and best regards,<BR>
Azhar<BR></BLOCKQUOTE></BLOCKQUOTE></body>
</html>
_______________________________________________
Tinyos-help mailing list
Tinyos-help at Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Scanned with Copfilter Version 0.84beta2 (ProxSMTP 1.6)
AntiVirus: ClamAV 0.91.2-exp/4502 - Mon Oct  8 03:52:34 2007
AntiVirus: F-PROT 4.6.7 Engine version: 3.16.15
SIGN.DEF 5 Oct07 - SIGN2.DEF 5 Oct07 - MACRO.DEF 5 Oct07
by Markus Madlener @ http://www.copfilter.org


More information about the Tinyos-help mailing list