[Tinyos-help] [TOSSIM for blink]

Bernardo Avila Pires obernardo at gmail.com
Fri Jun 22 05:05:15 PDT 2007


> I think that it just runs one event and it doesn't catch the following
> events ?

Precisely. You should use more "t.runNextEvent()", in order to run
more than one event. Put in a while loop with a event limit or a time
limit and things should go fine.

2007/6/22, vazoumana fofana <zoumlander at hotmail.com>:
> Hello
>
> Here is my script :
>
> from TOSSIM import *
> import sys
> f = open("log.txt", "w")
> t = Tossim([])
> t.addChannel("BlinkC", sys.stdout);
> t.addChannel("Boot", sys.stdout);
> m = t.getNode(2).bootAtTime(0);
> t.runNextEvent()
>
> and it printed :
>
> DEBUG (2): Timer 0 started @ 0:0:0.000000000.
> I think that it just runs one event and it doesn't catch the following
> events ?
>
>
>
> >From: "Bernardo Avila Pires" <obernardo at gmail.com>
> >To: "vazoumana fofana" <zoumlander at hotmail.com>
> >Subject: Re: [Tinyos-help] [TOSSIM]
> >Date: Thu, 21 Jun 2007 14:23:49 -0300
> >
> >Which script are you using?
> >
> >2007/6/21, vazoumana fofana <zoumlander at hotmail.com>:
> >>i run tossim for Blink application. It dosen t work good. In fact when i
> >>launch script it just prints the boot messages not Blink messages.
> >>
> >>Can you help me ?
> >>
> >>
> >> >From: Peizhao Hu <peizhao at itee.uq.edu.au>
> >> >Reply-To: peizhao at itee.uq.edu.au
> >> >To: vazoumana fofana <zoumlander at hotmail.com>
> >> >CC: tinyos-help at Millennium.Berkeley.EDU
> >> >Subject: Re: [Tinyos-help] [Broadcast and tree graph]
> >> >Date: Wed, 13 Jun 2007 21:02:41 +1000
> >> >
> >> >It sounds like the Collection and Dissemination services.
> >> >
> >> >vazoumana fofana wrote:
> >> >>hello,
> >> >>
> >> >>i want to implement an appliaction where a basestation broadcast a
> >>message
> >> >>wich contains its id and distance ( 0 for the sink). When a mote
> >>receive
> >> >>its message, it acks by sending its id end distance by incrementing
> >> >>distance. It does recursively until all motes have acked messages.
> >> >>It looks like to CPT. At the end, the base station can have a tree of
> >>all
> >> >>motes. Have you ever programmed it ? Can you help me ?
> >> >>
> >> >>_________________________________________________________________
> >> >>Windows Live Spaces : créez votre blog à votre image !
> >> >>http://www.windowslive.fr/spaces
> >> >>
> >> >>_______________________________________________
> >> >>Tinyos-help mailing list
> >> >>Tinyos-help at Millennium.Berkeley.EDU
> >> >>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >> >
> >> >--
> >> >regards;
> >> >
> >> >Peizhao
> >> >
> >>
> >>_________________________________________________________________
> >>Personnalisez votre Messenger avec Live.com
> >>http://www.windowslive.fr/livecom/
> >>
> >>_______________________________________________
> >>Tinyos-help mailing list
> >>Tinyos-help at Millennium.Berkeley.EDU
> >>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >>
> >
> >
> >--
> >"The truth shall set you free"
> ><a href="http://www.nerdtests.com/nq_ref.html">
> ><img src="http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif"
> >alt="I am nerdier than 99% of all people. Are you a nerd? Click here
> >to find out!"></a>
>
> _________________________________________________________________
> Gagnez des pc Windows Vista avec Live.com http://www.image-addict.fr/
>
>


-- 
"The truth shall set you free"
<a href="http://www.nerdtests.com/nq_ref.html">
<img src="http://www.nerdtests.com/images/badge/dc875a1ab1aff18f.gif"
alt="I am nerdier than 99% of all people. Are you a nerd? Click here
to find out!"></a>



More information about the Tinyos-help mailing list