Re: Tinyos-help Digest, Vol 89, Issue 69

Hi,  i am  a beginner of tinyOS , currently i am working on a WSN project ..The purpose is to track a target inside the  network. We will have  two anchors ( MICAZs positions are already know) two relay node and one base. My questions is

1) How to send the information (hop count)  from the anchor that i received from the target  to the base station( via multi-hop ) ...if i put the station close to one anchor the then  the other anchor will be out of range


thanks for the time and  really appriciate it ,

lance






On Fri, Oct 1, 2010 at 3:00 AM, <tinyos-help-request <at> millennium.berkeley.edu> wrote:
Send Tinyos-help mailing list submissions to
       tinyos-help <at> millennium.berkeley.edu

To subscribe or unsubscribe via the World Wide Web, visit
       https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

or, via email, send a message with subject or body 'help' to
       tinyos-help-request <at> millennium.berkeley.edu

You can reach the person managing the list at
       tinyos-help-owner <at> millennium.berkeley.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tinyos-help digest..."


Today's Topics:

  1. Re: FFT(Fast Fourier Transform) in TinyOS (Michael Schippling)
  2. which version of Tinyos is this? (wasif masood)
  3. Re: acoustic recording source code (Michael Schippling)


----------------------------------------------------------------------

Message: 1
Date: Thu, 30 Sep 2010 10:39:59 -0600
From: Michael Schippling <schip <at> santafe.edu>
Subject: Re: [Tinyos-help] FFT(Fast Fourier Transform) in TinyOS
To: Christian To <xtian_1028 <at> yahoo.com>
Cc: tinyos-help <at> millennium.berkeley.edu
Message-ID: <4CA4BD5F.6040709 <at> santafe.edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

I don't know of any official code but I have a little
C demo I made for myself years ago here:
   http://www.etantdonnes.com/DATA/FFT.zip

The problem is that the micro-controllers have very
little RAM and no math support beyond an integer
multiply instruction. You can use the above code
to do fixed point calculations which will alleviate
the problems but it's not ideal. It would be better
to do calculations at the host node.

MS


Christian To wrote:
> Hello!
>
> I am an undergraduate student trying to build a wireless sensor network
> that monitors vibration from civil structures.
>
> I was wondering if TinyOS has an implementation of FFT (Fast Fourier
> Transform) so that I can do modal analysis.
>
> If there is so, can anyone please tell me?
>
> Thank You!
>
> - Christian To
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help <at> millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


------------------------------

Message: 2
Date: Thu, 30 Sep 2010 18:44:11 +0200
From: wasif masood <rwmasood <at> gmail.com>
Subject: [Tinyos-help] which version of Tinyos is this?
To: tinyos forum <tinyos-help <at> millennium.berkeley.edu>
Message-ID:
       <AANLkTim48Dgi4XB5ihE5T_tJRR7URKSpcUFcBG_pFhGC <at> mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

can anyone please tell me which version of tinyos is at this CVS address:

cvs -z3 -d:pserver:anonymous <at> tinyos.cvs.sourceforge.net:/cvsroot/tinyos
checkout


available at:
http://docs.tinyos.net/index.php/TinyOS_CVS_access


is this 2.1.1 or what? because lately we are having problem running tests on
Indriya test bed because of this different versions of tinyos
--
Wasif Masood
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20100930/4435f1bf/attachment-0001.htm

------------------------------

Message: 3
Date: Thu, 30 Sep 2010 10:44:53 -0600
From: Michael Schippling <schip <at> santafe.edu>
Subject: Re: [Tinyos-help] acoustic recording source code
To: =?x-gbk?Q?=B9=F9=C1=E8=B3=AC?= <glc216722 <at> 163.com>
Cc: Tinyos-help <tinyos-help <at> millennium.berkeley.edu>
Message-ID: <4CA4BE85.6000809 <at> santafe.edu>
Content-Type: text/plain; charset=x-gbk; format=flowed

search this list for  keywords:
audio, microphone, FastAdc

and have a look at these links:
> Hi Omar,
>
> Use this library (works only for IRIS so far)
>
> http://szte-wsn.cvs.sourceforge.net/viewvc/szte-wsn/tinyos/tos/lib/Atm128FastAdc/
>
> and this sample application to sample the mic at 9 KHz.
>
> http://szte-wsn.cvs.sourceforge.net/viewvc/szte-wsn/tinyos/apps/MicReadStreamTest/
>
> Miklos


?????? wrote:
> Hi all,
>        I'm a freshman of tinyos , my boss want me to record acoustic
> sounds over a sensor network. However, I don't really know how to use
> Mic to record sounds, so who can send me a source code of acoustic
> recording ,and a piece of cooperative recording code would be better.
> Thank you very much!
>
>
> ------------------------------------------------------------------------
> ????????????????????????????24??????????????
> <http://yxp.163.com/photo/ep.html?sss=fromyx0911>
>
> ------------------------------------------------------------------------
> ????????????????????????????24??????????????
> <http://yxp.163.com/photo/ep.html?sss=fromyx0911>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help <at> millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


------------------------------

_______________________________________________
Tinyos-help mailing list
Tinyos-help <at> millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

End of Tinyos-help Digest, Vol 89, Issue 69
*******************************************

<div>
<p>Hi,&nbsp; i am&nbsp; a beginner of tinyOS , currently i am working on a WSN project ..The purpose is to track a target inside the&nbsp; network. We will have&nbsp; two anchors ( MICAZs positions are already know) two relay node and one base. My questions is<br><br>1) How to send the information (hop count)&nbsp; from the anchor that i received from the target&nbsp; to the base station( via multi-hop ) ...if i put the station close to one anchor the then&nbsp; the other anchor will be out of range <br><br><br>thanks for the time and&nbsp; really appriciate it ,<br><br>lance<br><br><br><br><br><br><br></p>
<div class="gmail_quote">On Fri, Oct 1, 2010 at 3:00 AM,  <span dir="ltr">&lt;<a href="mailto:tinyos-help-request <at> millennium.berkeley.edu">tinyos-help-request <at> millennium.berkeley.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">Send Tinyos-help mailing list submissions to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:tinyos-help <at> millennium.berkeley.edu">tinyos-help <at> millennium.berkeley.edu</a><br><br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help" target="_blank">https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help</a><br><br>
or, via email, send a message with subject or body 'help' to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:tinyos-help-request <at> millennium.berkeley.edu">tinyos-help-request <at> millennium.berkeley.edu</a><br><br>
You can reach the person managing the list at<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:tinyos-help-owner <at> millennium.berkeley.edu">tinyos-help-owner <at> millennium.berkeley.edu</a><br><br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Tinyos-help digest..."<br><br><br>
Today's Topics:<br><br>
 &nbsp; 1. Re: FFT(Fast Fourier Transform) in TinyOS (Michael Schippling)<br>
 &nbsp; 2. which version of Tinyos is this? (wasif masood)<br>
 &nbsp; 3. Re: acoustic recording source code (Michael Schippling)<br><br><br>
----------------------------------------------------------------------<br><br>
Message: 1<br>
Date: Thu, 30 Sep 2010 10:39:59 -0600<br>
From: Michael Schippling &lt;<a href="mailto:schip <at> santafe.edu">schip <at> santafe.edu</a>&gt;<br>
Subject: Re: [Tinyos-help] FFT(Fast Fourier Transform) in TinyOS<br>
To: Christian To &lt;<a href="mailto:xtian_1028 <at> yahoo.com">xtian_1028 <at> yahoo.com</a>&gt;<br>
Cc: <a href="mailto:tinyos-help <at> millennium.berkeley.edu">tinyos-help <at> millennium.berkeley.edu</a><br>
Message-ID: &lt;<a href="mailto:4CA4BD5F.6040709 <at> santafe.edu">4CA4BD5F.6040709 <at> santafe.edu</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>
I don't know of any official code but I have a little<br>
C demo I made for myself years ago here:<br>
 &nbsp; &nbsp;<a href="http://www.etantdonnes.com/DATA/FFT.zip" target="_blank">http://www.etantdonnes.com/DATA/FFT.zip</a><br><br>
The problem is that the micro-controllers have very<br>
little RAM and no math support beyond an integer<br>
multiply instruction. You can use the above code<br>
to do fixed point calculations which will alleviate<br>
the problems but it's not ideal. It would be better<br>
to do calculations at the host node.<br><br>
MS<br><br><br>
Christian To wrote:<br>
&gt; Hello!<br>
&gt;<br>
&gt; I am an undergraduate student trying to build a wireless sensor network<br>
&gt; that monitors vibration from civil structures.<br>
&gt;<br>
&gt; I was wondering if TinyOS has an implementation of FFT (Fast Fourier<br>
&gt; Transform) so that I can do modal analysis.<br>
&gt;<br>
&gt; If there is so, can anyone please tell me?<br>
&gt;<br>
&gt; Thank You!<br>
&gt;<br>
&gt; - Christian To<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Tinyos-help mailing list<br>
&gt; <a href="mailto:Tinyos-help <at> millennium.berkeley.edu">Tinyos-help <at> millennium.berkeley.edu</a><br>
&gt; <a href="https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help" target="_blank">https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help</a><br><br><br>
------------------------------<br><br>
Message: 2<br>
Date: Thu, 30 Sep 2010 18:44:11 +0200<br>
From: wasif masood &lt;<a href="mailto:rwmasood <at> gmail.com">rwmasood <at> gmail.com</a>&gt;<br>
Subject: [Tinyos-help] which version of Tinyos is this?<br>
To: tinyos forum &lt;<a href="mailto:tinyos-help <at> millennium.berkeley.edu">tinyos-help <at> millennium.berkeley.edu</a>&gt;<br>
Message-ID:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;<a href="mailto:AANLkTim48Dgi4XB5ihE5T_tJRR7URKSpcUFcBG_pFhGC <at> mail.gmail.com">AANLkTim48Dgi4XB5ihE5T_tJRR7URKSpcUFcBG_pFhGC <at> mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset="iso-8859-1"<br><br>
can anyone please tell me which version of tinyos is at this CVS address:<br><br>
cvs -z3 -d:pserver:anonymous <at> tinyos.cvs.sourceforge.net:/cvsroot/tinyos<br>
checkout<br><br><br>
available at:<br><a href="http://docs.tinyos.net/index.php/TinyOS_CVS_access" target="_blank">http://docs.tinyos.net/index.php/TinyOS_CVS_access</a><br><br><br>
is this 2.1.1 or what? because lately we are having problem running tests on<br>
Indriya test bed because of this different versions of tinyos<br>
--<br>
Wasif Masood<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20100930/4435f1bf/attachment-0001.htm" target="_blank">https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20100930/4435f1bf/attachment-0001.htm</a><br><br>
------------------------------<br><br>
Message: 3<br>
Date: Thu, 30 Sep 2010 10:44:53 -0600<br>
From: Michael Schippling &lt;<a href="mailto:schip <at> santafe.edu">schip <at> santafe.edu</a>&gt;<br>
Subject: Re: [Tinyos-help] acoustic recording source code<br>
To: =?x-gbk?Q?=B9=F9=C1=E8=B3=AC?= &lt;<a href="mailto:glc216722 <at> 163.com">glc216722 <at> 163.com</a>&gt;<br>
Cc: Tinyos-help &lt;<a href="mailto:tinyos-help <at> millennium.berkeley.edu">tinyos-help <at> millennium.berkeley.edu</a>&gt;<br>
Message-ID: &lt;<a href="mailto:4CA4BE85.6000809 <at> santafe.edu">4CA4BE85.6000809 <at> santafe.edu</a>&gt;<br>
Content-Type: text/plain; charset=x-gbk; format=flowed<br><br>
search this list for &nbsp;keywords:<br>
audio, microphone, FastAdc<br><br>
and have a look at these links:<br>
&gt; Hi Omar,<br>
&gt;<br>
&gt; Use this library (works only for IRIS so far)<br>
&gt;<br>
&gt; <a href="http://szte-wsn.cvs.sourceforge.net/viewvc/szte-wsn/tinyos/tos/lib/Atm128FastAdc/" target="_blank">http://szte-wsn.cvs.sourceforge.net/viewvc/szte-wsn/tinyos/tos/lib/Atm128FastAdc/</a><br>
&gt;<br>
&gt; and this sample application to sample the mic at 9 KHz.<br>
&gt;<br>
&gt; <a href="http://szte-wsn.cvs.sourceforge.net/viewvc/szte-wsn/tinyos/apps/MicReadStreamTest/" target="_blank">http://szte-wsn.cvs.sourceforge.net/viewvc/szte-wsn/tinyos/apps/MicReadStreamTest/</a><br>
&gt;<br>
&gt; Miklos<br><br><br>
?????? wrote:<br>
&gt; Hi all,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;I'm a freshman of tinyos , my boss want me to record acoustic<br>
&gt; sounds over a sensor network. However, I don't really know how to use<br>
&gt; Mic to record sounds, so who can send me a source code of acoustic<br>
&gt; recording ,and a piece of cooperative recording code would be better.<br>
&gt; Thank you very much!<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt; ????????????????????????????24??????????????<br>
&gt; &lt;<a href="http://yxp.163.com/photo/ep.html?sss=fromyx0911" target="_blank">http://yxp.163.com/photo/ep.html?sss=fromyx0911</a>&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt; ????????????????????????????24??????????????<br>
&gt; &lt;<a href="http://yxp.163.com/photo/ep.html?sss=fromyx0911" target="_blank">http://yxp.163.com/photo/ep.html?sss=fromyx0911</a>&gt;<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Tinyos-help mailing list<br>
&gt; <a href="mailto:Tinyos-help <at> millennium.berkeley.edu">Tinyos-help <at> millennium.berkeley.edu</a><br>
&gt; <a href="https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help" target="_blank">https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help</a><br><br><br>
------------------------------<br><br>
_______________________________________________<br>
Tinyos-help mailing list<br><a href="mailto:Tinyos-help <at> millennium.berkeley.edu">Tinyos-help <at> millennium.berkeley.edu</a><br><a href="https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help" target="_blank">https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help</a><br><br>
End of Tinyos-help Digest, Vol 89, Issue 69<br>
*******************************************<br>
</blockquote>
</div>
<br>
</div>
glc216722 | 1 Oct 2010 05:22
Favicon

Re: acoustic recording source code

I haven't seen the MicStreamC component in the http://www.tinyos.net/tinyos-2.1.0/doc/nesdoc/iris/
,does it mean the iris don't have the MicStreamC component and I cannot use it?
At 2010-10-01 00:44:53,"Michael Schippling" <schip <at> santafe.edu> wrote:
>search this list for  keywords:
>audio, microphone, FastAdc
>
>and have a look at these links:
>> Hi Omar,
>> 
>> Use this library (works only for IRIS so far)
>> 
>> http://szte-wsn.cvs.sourceforge.net/viewvc/szte-wsn/tinyos/tos/lib/Atm128FastAdc/
>> 
>> and this sample application to sample the mic at 9 KHz.
>> 
>> http://szte-wsn.cvs.sourceforge.net/viewvc/szte-wsn/tinyos/apps/MicReadStreamTest/
>> 
>> Miklos
>
>
>郭凌超 wrote:
>> Hi all,
>>        I'm a freshman of tinyos , my boss want me to record acoustic 
>> sounds over a sensor network. However, I don't really know how to use 
>> Mic to record sounds, so who can send me a source code of acoustic 
>> recording ,and a piece of cooperative recording code would be better.
>> Thank you very much!
>> 
>> 
>> ------------------------------------------------------------------------
>> 全国最低价,天天在家冲照片,24小时发货上门! 
>> <http://yxp.163.com/photo/ep.html?sss=fromyx0911>
>> 
>> ------------------------------------------------------------------------
>> 全国最低价,天天在家冲照片,24小时发货上门! 
>> <http://yxp.163.com/photo/ep.html?sss=fromyx0911>
>> 
>> 
>> ------------------------------------------------------------------------
>> 
>> _______________________________________________
>> Tinyos-help mailing list
>> Tinyos-help <at> millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

_______________________________________________
Tinyos-help mailing list
Tinyos-help <at> millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
glc216722 | 1 Oct 2010 06:05
Favicon

cooperative recording

HI All
I am using MTS310CA sensor board and IRIS motes and I want to use the
MicStreamC component to get high sampling music and then store it and
play it . I wonder how I can do this. Moreover , I have to use multiple sensors
to record the music cooperatively and record it using different sensors by the
assignment of the basestation based on time-divison and then combine those
pieces of sounds together to play the music again.It's difficult for me cause I'm
a freshman of tinyos and nesc. So please help me , I would really appreciate any
help possible.

Thanks
glc


全国最低价,天天在家冲照片,24小时发货上门!

<div><p>HI All
<br>I am using MTS310CA sensor board and IRIS motes and I want to use the
<br>MicStreamC component to get high sampling music and then store it and <br>play it . I wonder how I can do this. Moreover , I have to use multiple sensors<br>to record the music cooperatively and record it using different sensors by the<br>assignment of the basestation based on time-divison and then combine those <br>pieces of sounds together to play the music again.It's difficult for me cause I'm<br> a freshman of tinyos and nesc. So please help me , I would really appreciate any
<br>help possible.<br><br>Thanks<br>glc<br><br><br><span title="neteasefooter"><span><a href="http://yxp.163.com/photo/ep.html?sss=fromyx0911" target="_blank">&#20840;&#22269;&#26368;&#20302;&#20215;&#65292;&#22825;&#22825;&#22312;&#23478;&#20914;&#29031;&#29255;&#65292;24&#23567;&#26102;&#21457;&#36135;&#19978;&#38376;&#65281;</a>
</span></span></p></div>
Jingyao Zhang | 1 Oct 2010 05:06
Picon

segmentation fault of noise model

Dear all,

I run a simulation in TOSSIM, but I got a segmentation fault. I used gdb to trace it and found it has something wrong with TOSSIM's noise model.

The following is the detailed information:


(gdb) bt
#0  0x0805b92e in sim_noise_dist (node_id=2) at /opt/tinyos-2.1.1/tos/lib/tossim/sim_noise.c:197
#1  0x0805b7a6 in makePmfDistr (node_id=2) at /opt/tinyos-2.1.1/tos/lib/tossim/sim_noise.c:262
#2  0x0805b204 in sim_noise_create_model (node_id=2) at /opt/tinyos-2.1.1/tos/lib/tossim/sim_noise.c:78
#3  0x08051e4a in Mote::createNoiseModel (this=0x80f8658) at /opt/tinyos-2.1.1/tos/lib/tossim/tossim.c:199
#4  0x0804ccd1 in main ()
(gdb) f 0
#0  0x0805b92e in sim_noise_dist (node_id=2) at /opt/tinyos-2.1.1/tos/lib/tossim/sim_noise.c:197
197      if (noise_hash->flag == 1)
(gdb) f 1
#1  0x0805b7a6 in makePmfDistr (node_id=2) at /opt/tinyos-2.1.1/tos/lib/tossim/sim_noise.c:262
262        sim_noise_dist(node_id);
(gdb) f 2
#2  0x0805b204 in sim_noise_create_model (node_id=2) at /opt/tinyos-2.1.1/tos/lib/tossim/sim_noise.c:78
78      makePmfDistr(node_id);
(gdb) f 3
#3  0x08051e4a in Mote::createNoiseModel (this=0x80f8658) at /opt/tinyos-2.1.1/tos/lib/tossim/tossim.c:199
199      sim_noise_create_model(id());
(gdb) f 4
#4  0x0804ccd1 in main ()


Would anyone tell me what's the problem?

Thanks a lot.

Regards,
JIngyao

<div><p>Dear all,<br><br>I run a simulation in TOSSIM, but I got a segmentation fault. I used gdb to trace it and found it has something wrong with TOSSIM's noise model.<br><br>The following is the detailed information: <br><br><br>(gdb) bt<br>#0&nbsp; 0x0805b92e in sim_noise_dist (node_id=2) at /opt/tinyos-2.1.1/tos/lib/tossim/sim_noise.c:197<br>#1&nbsp; 0x0805b7a6 in makePmfDistr (node_id=2) at /opt/tinyos-2.1.1/tos/lib/tossim/sim_noise.c:262<br>#2&nbsp; 0x0805b204 in sim_noise_create_model (node_id=2) at /opt/tinyos-2.1.1/tos/lib/tossim/sim_noise.c:78<br>
#3&nbsp; 0x08051e4a in Mote::createNoiseModel (this=0x80f8658) at /opt/tinyos-2.1.1/tos/lib/tossim/tossim.c:199<br>#4&nbsp; 0x0804ccd1 in main ()<br>(gdb) f 0<br>#0&nbsp; 0x0805b92e in sim_noise_dist (node_id=2) at /opt/tinyos-2.1.1/tos/lib/tossim/sim_noise.c:197<br>
197&nbsp;&nbsp;&nbsp; &nbsp; if (noise_hash-&gt;flag == 1)<br>(gdb) f 1<br>#1&nbsp; 0x0805b7a6 in makePmfDistr (node_id=2) at /opt/tinyos-2.1.1/tos/lib/tossim/sim_noise.c:262<br>262&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sim_noise_dist(node_id);<br>(gdb) f 2<br>#2&nbsp; 0x0805b204 in sim_noise_create_model (node_id=2) at /opt/tinyos-2.1.1/tos/lib/tossim/sim_noise.c:78<br>
78&nbsp;&nbsp;&nbsp; &nbsp; makePmfDistr(node_id);<br>(gdb) f 3<br>#3&nbsp; 0x08051e4a in Mote::createNoiseModel (this=0x80f8658) at /opt/tinyos-2.1.1/tos/lib/tossim/tossim.c:199<br>199&nbsp;&nbsp;&nbsp; &nbsp; sim_noise_create_model(id());<br>(gdb) f 4<br>#4&nbsp; 0x0804ccd1 in main ()<br><br><br>Would anyone tell me what's the problem?<br><br>Thanks a lot.<br><br>Regards,<br>JIngyao<br></p></div>
Miklos Maroti | 1 Oct 2010 09:41
Picon
Gravatar

Re: acoustic recording source code

It does, but it is slow. Miklos

2010/10/1 glc216722 <glc216722 <at> 163.com>:
> I haven't seen the MicStreamC component in the
http://www.tinyos.net/tinyos-2.1.0/doc/nesdoc/iris/ ,does it mean the iris don't have the
MicStreamC component and I cannot use it?
> At 2010-10-01 00:44:53,"Michael Schippling" <schip <at> santafe.edu> wrote:
>>search this list for  keywords:
>>audio, microphone, FastAdc
>>
>>and have a look at these links:
>>> Hi Omar,
>>>
>>> Use this library (works only for IRIS so far)
>>>
>>> http://szte-wsn.cvs.sourceforge.net/viewvc/szte-wsn/tinyos/tos/lib/Atm128FastAdc/
>>>
>>> and this sample application to sample the mic at 9 KHz.
>>>
>>> http://szte-wsn.cvs.sourceforge.net/viewvc/szte-wsn/tinyos/apps/MicReadStreamTest/
>>>
>>> Miklos
>>
>>
>>郭凌超 wrote:
>>> Hi all,
>>>        I'm a freshman of tinyos , my boss want me to record acoustic
>>> sounds over a sensor network. However, I don't really know how to use
>>> Mic to record sounds, so who can send me a source code of acoustic
>>> recording ,and a piece of cooperative recording code would be better.
>>> Thank you very much!
>>>
>>>
>>> ------------------------------------------------------------------------
>>> 全国最低价,天天在家冲照片,24小时发货上门!
>>> <http://yxp.163.com/photo/ep.html?sss=fromyx0911>
>>>
>>> ------------------------------------------------------------------------
>>> 全国最低价,天天在家冲照片,24小时发货上门!
>>> <http://yxp.163.com/photo/ep.html?sss=fromyx0911>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Tinyos-help mailing list
>>> Tinyos-help <at> millennium.berkeley.edu
>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help <at> millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

_______________________________________________
Tinyos-help mailing list
Tinyos-help <at> millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Daniela Iervolino | 1 Oct 2010 09:50
Picon

Magnetometer's value

Hi!

Does anyone know how to interpret magnetometer's value?

I'm working with code to retrieve values from magnetometer sensor in tinyos and I get a different value for X and Y axis of magnetometer. The fact is that I don't know their meaning and how these can help me to obtain a magnetic field's value..

Thanks

Bye!

<div>
<p class="p1">Hi!</p>
<p class="p1">Does anyone know how to interpret magnetometer's value?</p>
<p class="p1">I'm working with code to retrieve values from magnetometer sensor in tinyos and I get a different value for X and Y axis of magnetometer. The fact is that I don't know their meaning and how these can help me to obtain a magnetic field's value..</p>

<p class="p1">Thanks</p>
<p class="p1">Bye!</p>
</div>
glc216722 | 1 Oct 2010 12:56
Favicon

component problem

Hi all,
       Can a component be used mutiple times in an single file ?
       For example, component ActiveMessageC as AMC1;
                             component ActiveMessageC as AMC2;
       Is that correct or false ?


全国最低价,天天在家冲照片,24小时发货上门!

<div><p>Hi all,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Can a component be used mutiple times in an single file ? <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For example, component ActiveMessageC as AMC1;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; component ActiveMessageC as AMC2;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Is that correct or false &#65311;<br><br><br><span title="neteasefooter"><span><a href="http://yxp.163.com/photo/ep.html?sss=fromyx0911" target="_blank">&#20840;&#22269;&#26368;&#20302;&#20215;&#65292;&#22825;&#22825;&#22312;&#23478;&#20914;&#29031;&#29255;&#65292;24&#23567;&#26102;&#21457;&#36135;&#19978;&#38376;&#65281;</a>
</span></span></p></div>
wasif masood | 1 Oct 2010 13:09
Picon

Re: component problem


why are you doing that? may be depending upon the use we may tell you a better solution.

2010/10/1 glc216722 <glc216722 <at> 163.com>
Hi all,
       Can a component be used mutiple times in an single file ?
       For example, component ActiveMessageC as AMC1;
                             component ActiveMessageC as AMC2;
       Is that correct or false ?


全国最低价,天天在家冲照片,24小时发货上门!
_______________________________________________
Tinyos-help mailing list
Tinyos-help <at> millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



--
Wasif Masood

<div>
<br>why are you doing that? may be depending upon the use we may tell you a better solution.<br><br><div class="gmail_quote">2010/10/1 glc216722 <span dir="ltr">&lt;<a href="mailto:glc216722 <at> 163.com">glc216722 <at> 163.com</a>&gt;</span><br><blockquote class="gmail_quote">Hi all,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Can a component be used mutiple times in an single file ? <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For example, component ActiveMessageC as AMC1;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; component ActiveMessageC as AMC2;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Is that correct or false &#65311;<br><br><br><span title="neteasefooter"><span><a href="http://yxp.163.com/photo/ep.html?sss=fromyx0911" target="_blank">&#20840;&#22269;&#26368;&#20302;&#20215;&#65292;&#22825;&#22825;&#22312;&#23478;&#20914;&#29031;&#29255;&#65292;24&#23567;&#26102;&#21457;&#36135;&#19978;&#38376;&#65281;</a>
</span></span><br>_______________________________________________<br>
Tinyos-help mailing list<br><a href="mailto:Tinyos-help <at> millennium.berkeley.edu">Tinyos-help <at> millennium.berkeley.edu</a><br><a href="https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help" target="_blank">https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help</a><br>
</blockquote>
</div>
<br><br clear="all"><br>

-- <br>Wasif Masood<br><br>
</div>
Sensors Project | 1 Oct 2010 15:14
Picon
Favicon

TinyOS 2 Deluge

Hi everybody,

I'm having trouble using the Deluge network reprogramming function in TinyOS 2 on the Tmote Sky (TelosB) platform. I was wondering if people could give any advice or perhaps suggest an alternative implementation of network reprogramming to consider with TinyOS 2.

I am using the latest version of TinyOS 2 from the CVS. I have followed the instructions, briefly as follows:

1. Built the tools. Could not find a tool to format the flash on the nodes, so didn't do that. (I assume it is automatic now.)

2. Built the Basestation in the apps/tests/deluge/Basestation directory:

CFLAGS=-DDELUGE_BASESTATION make telosb install,50 bsl,/dev/ttyUSB0

3. Used tos-deluge tool to install the application again into the Flash chip. Slot 0.

tos-deluge serial <at> /dev/ttyUSB0:115200 -i 0 build/telosb/tos_image.xml

4. Built and flashed the GoldenImage as in steps 2 and 3, for every remaining node in the network with unique addresses.

5. Modified the Blink application by adding the component DelugeC in the app file, adding the flash volumes XML file to the directory and adding the BOOTLOADER = tosboot to the Makefile. (I assume I don't need to wire it up in TinyOS 2.)

6. Used tos-deluge to install the application to the Basestation slot 1.

7. Issued the command to disseminate.

RESULT: Some (not all) nodes begin flashing the green lights. Of those nodes, about half stop on a blue light and the rest freeze on a green light.

8. Issued the command to reboot those nodes to image 1.

RESULT: The nodes with lit blue lights reboot, flash themselves and start the Blink application. The green nodes do nothing. The other nodes do nothing.


My observation at the moment is that the Deluge protocol is only working with some nodes. Of those nodes only a few actually reprogram themselves.

Thoughts so far:

* Do the nodes need to be formatted, as seen in the TinyOS 1 instructions?

* All the nodes are powered from USB connections, but some of them seem to flash the RED led when the reset gesture is given. Is USB enough voltage?

* What care do I need to take in the above steps? Is there a minimum delay between issuing the disseminate and program commands?

* What is the delay for the whole network to be reprogrammed typically. Is there a built in method to obtain positive confirmation at the Basestation?

* Is Deluge known to be stable, and if not, does an alternative protocol exist that works?


Any help would be appreciated. I am about to roll out a network of over 30 nodes and I really don't want to have to wander around reprogramming all day...

<div>

Hi everybody,<br><br>I'm having trouble using the Deluge network reprogramming function in TinyOS 2 on the Tmote Sky (TelosB) platform. I was wondering if people could give any advice or perhaps suggest an alternative implementation of network reprogramming to consider with TinyOS 2.<br><br>I am using the latest version of TinyOS 2 from the CVS. I have followed the instructions, briefly as follows:<br><br>1. Built the tools. Could not find a tool to format the flash on the nodes, so didn't do that. (I assume it is automatic now.)<br><br>2. Built the Basestation in the apps/tests/deluge/Basestation directory:<br><br>CFLAGS=-DDELUGE_BASESTATION make telosb install,50 bsl,/dev/ttyUSB0<br><br>3. Used tos-deluge tool to install the application again into the Flash chip. Slot 0.<br><br>tos-deluge serial <at> /dev/ttyUSB0:115200 -i 0  build/telosb/tos_image.xml
<br><br>4. Built and flashed the GoldenImage as in steps 2 and 3, for every remaining node in the network with unique addresses.<br><br>5. Modified the Blink application by adding the component DelugeC in the app file, adding the flash volumes XML file to the directory and adding the BOOTLOADER = tosboot to the Makefile. (I assume I don't need to wire it up in TinyOS 2.)<br><br>6. Used tos-deluge to install the application to the Basestation slot 1.<br><br>7. Issued the command to disseminate.<br><br>RESULT: Some (not all) nodes begin flashing the green lights. Of those nodes, about half stop on a blue light and the rest freeze on a green light.<br><br>8. Issued the command to reboot those nodes to image 1.<br><br>RESULT: The nodes with lit blue lights reboot, flash themselves and start the Blink application. The green nodes do nothing. The other nodes do nothing.<br><br><br>My observation at the moment is that the Deluge protocol is only working with some nodes. Of those nodes only a few actually reprogram themselves.<br><br>Thoughts so far:<br><br>* Do the nodes need to be formatted, as seen in the TinyOS 1 instructions?<br><br>* All the nodes are powered from USB connections, but some of them seem to flash the RED led when the reset gesture is given. Is USB enough voltage?<br><br>* What care do I need to take in the above steps? Is there a minimum delay between issuing the disseminate and program commands?<br><br>* What is the delay for the whole network to be reprogrammed typically. Is there a built in method to obtain positive confirmation at the Basestation?<br><br>* Is Deluge known to be stable, and if not, does an alternative protocol exist that works?<br><br><br>Any help would be appreciated. I am about to roll out a network of over 30 nodes and I really don't want to have to wander around reprogramming all day...<br><br>
</div>
Chieh-Jan (Mike) Liang | 1 Oct 2010 15:59

Re: TinyOS 2 Deluge


On Oct 1, 2010, at 9:14 AM, Sensors Project wrote:

> * Do the nodes need to be formatted, as seen in the TinyOS 1 instructions?

You don't need to.

> * All the nodes are powered from USB connections, but some of them seem to flash the RED led when the reset
gesture is given. Is USB enough voltage?

It should be.

> * What care do I need to take in the above steps? Is there a minimum delay between issuing the disseminate and
program commands?

It depends on the network size. Basically until all nodes have received the new image.

> * What is the delay for the whole network to be reprogrammed typically. Is there a built in method to obtain
positive confirmation at the Basestation?
> 
> * Is Deluge known to be stable, and if not, does an alternative protocol exist that works?

Have you tried the burn scripts in Deluge test app folder (apps/tests/deluge/Blink)? Do they work for you?

Mike

Gmane