Thank you for the explanations .

It will be really usefull.

Maybe I'll find some time to write a small tutorial about all this when I'll
be comfortable with it.

Mathieu Van der Haegen.

On Nov 27, 2007 8:45 PM, Chad Metcalf <[EMAIL PROTECTED]> wrote:

> Or perhaps I'll just jump directly into the fray. :)
>
> There is indeed a SF for TOSSIM in CVS. You'll need to use CVS as there
> has been a major interface change since 2.0.2.
>
> The SF works with the standard tools (C, CPP, Java, Python). There is one
> SF per TOSSIM instance. You'll need to set the dest in the header when
> sending packets into the simulation. And conversely you'll need to pay
> attention to the src in the header when packets come out. As I recall this
> is a departure from the way 1.x tossim-sf worked.
>
> There is an example driver in the sf directory which works nicely with
> TestSerial. All in all its terribly simple.
>
> # Instantiate a SF with port number 9001 ( this connects to [EMAIL 
> PROTECTED]:9001)
> sf = SerialForwarder(9001)
>
> # Process once before the main loop to connect up any clients
> sf.process()
>
> # Process once in the body of the mainloop to keep the messages coming and
> service new clients
> for i in range(0, 60):
>   sf.process()
>   t.runNextEvent()
>
> Thats it. Really. Problems you might encounter are:
>
>    - Trying to use SF when your application doesn't use the serial
>    stack. This is a SerialForwarder you'll need to use serial send and 
> receive.
>    Read the tutorial.
>    - Messages aren't going where you expected. Did you set the dest?
>    - You're getting too many messages. Are you filtering for the
>    correct src?
>
> In the example you'll also see a Throttle object. All the throttle does is
> slow TOSSIM down to run more or less 1 second of sim time per 1 second of
> wall time. If you don't need the simulation to run in sync with wall time,
> then don't use the Throttle.
>
> There will be a tutorial at some point in the future. But for now this
> will have to do.
>
> Cheers
> Chad
>
>
>
>
> On Nov 27, 2007 8:08 AM, Van der Haegen Mathieu < [EMAIL PROTECTED]>
> wrote:
>
> > Hi ! I think you should have a look on the messages talking about
> > tossim-sf .
> >
> > look here for example : 
> > http://mail.millennium.berkeley.edu/pipermail/sim-wg/2007-October/000100.html
> >
> > or here : 
> > http://www.google.com/search?as_sitesearch=mail.millennium.berkeley.edu&hs=kN1&hl=en&lr=&rls=org.mozilla%3Aen-US%3Aofficial&q=tossim-sf&btnG=
> >
> >
> > I think it's still in beta and you will not find much support.
> >
> > Anyway I will need to make it work in the next days so your experience
> > will be interesting for me ...
> > And I'll share my trials to.
> >
> > Cheers.
> > Mathieu Van der Haegen.
> >
> > ps: I think you should ask chad metcalf as he wrote tossim-sf
> >
> >
> > On Nov 27, 2007 11:17 AM, Jannick Bitsch < [EMAIL PROTECTED]> wrote:
> >
> > >  Hi
> > >
> > >
> > >
> > > I wondered if its possible to attach/connect a java serial listener to
> > > a mote "running" inside tossim (I only need mote<->pc serial for one of 
> > > the
> > > motes in the simulation). In that case, how would you specify the packet
> > > source?
> > >
> > >
> > >
> > > Regards
> > >
> > > Jannick
> > >
> > >
> > >
> > > _______________________________________________
> > > Tinyos-help mailing list
> > > [email protected]
> > >
> > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> > >
> >
> >
> >
> > --
> > Van der Haegen Mathieu
> > http://www.ulb.ac.be/di/map/mavdhaeg/
> > http://www.ulb.ac.be/di/labo/
> > [EMAIL PROTECTED]
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
>
>
> --
> 1ab2fc7cad95db6481460f90a4909870




-- 
Van der Haegen Mathieu
http://www.ulb.ac.be/di/map/mavdhaeg/
http://www.ulb.ac.be/di/labo/
[EMAIL PROTECTED]
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to