Re: [Tinyos-help] TOSSIM : simulate a base station / running BaseStation*.nc
To communicate between a "BaseStation" and an external application, look at Tossim Live by Chad Metcalf (this is distributed as "sim-sf" in TinyOS 2.1 and later versions o the TinyOS 2.0.2 CVS, but not the original 2.0.2 package). It provides an SerialActiveMessageC(mote)<->SF(simulation<->application) interface and is a good way of "simulating" real-world communication between the WSN and external application. As far as using multiple applications, I have used variations of "dynamic selection" based upon De-MonHell's approach successfuly. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TOSSIM : simulate a base station / running BaseStation*.nc
i forgot to say that after composing the 2 apps together you must run a simulation using this mixapp for your nodes. (the logic in MixC will ensure that you'll run only one base station and n sensor) On Friday 05 September 2008 18:35:14 you wrote: > Tanks for you answer. > If i had understand it I can simulate a base station with tossim!!? > > I 've written a application in which N sensors send messages to > a base station. But my base station is a sensor with a particular > node id and which don't have the same behaviour than the others. > > So my sensors send messages to the base station via wireless waves. > > I wanted to know if I can simulate a serial communication beetween the > sensors and the base station so that I have a serial module which emulate > a serial link. > > thanks > > > tossim can run only one tinyos application at time, on as many as you > > want simulated nodes (motes) but nothing else. in tossim you can simulate > > communication directly sending fake radio message. > > so if you want to simulate the base station app you need to setup that > > way: put some dbg msg in the base station app > > compile it for tossim > > build a tossim execution file in python or in c++ in which you inject > > randomly radio message > > (see http://docs.tinyos.net/index.php/TOSSIM#Injecting_Packets) > > > > otherwise, there's tossim-live, that's a modified tossim version, not > > well documented that can do a lot more things like run different > > application, but i can't swear it. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TOSSIM : simulate a base station / running BaseStation*.nc
On Friday 05 September 2008 18:35:14 you wrote: > Tanks for you answer. > If i had understand it I can simulate a base station with tossim!!? > > I 've written a application in which N sensors send messages to > a base station. But my base station is a sensor with a particular > node id and which don't have the same behaviour than the others. > > So my sensors send messages to the base station via wireless waves. > > I wanted to know if I can simulate a serial communication beetween the > sensors and the base station so that I have a serial module which emulate > a serial link. > > thanks > > > tossim can run only one tinyos application at time, on as many as you > > want simulated nodes (motes) but nothing else. in tossim you can simulate > > communication directly sending fake radio message. > > so if you want to simulate the base station app you need to setup that > > way: put some dbg msg in the base station app > > compile it for tossim > > build a tossim execution file in python or in c++ in which you inject > > randomly radio message > > (see http://docs.tinyos.net/index.php/TOSSIM#Injecting_Packets) > > > > otherwise, there's tossim-live, that's a modified tossim version, not > > well documented that can do a lot more things like run different > > application, but i can't swear it. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TOSSIM : simulate a base station / running BaseStation*.nc
On Monday 01 September 2008 21:17:00 nartessos nartessos wrote: > Goodmorning everybody, > > > I want to simulate a base station using tossim (tinyos 2.x), I try to > run the BaseStation example. > It works fine but there is no communication. > > Where is the problem? Where the first message is sended in the source > code? Have I to use the > java program (net.tinyos.tools.Listen) to run this example? > > Is there somewhere where I can learn how to completely run this example ? > > > best regards > ___ > Tinyos-help mailing list > Tinyos-help@millennium.berkeley.edu > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help tossim can run only one tinyos application at time, on as many as you want simulated nodes (motes) but nothing else. in tossim you can simulate communication directly sending fake radio message. so if you want to simulate the base station app you need to setup that way: put some dbg msg in the base station app compile it for tossim build a tossim execution file in python or in c++ in which you inject randomly radio message (see http://docs.tinyos.net/index.php/TOSSIM#Injecting_Packets) otherwise, there's tossim-live, that's a modified tossim version, not well documented that can do a lot more things like run different application, but i can't swear it. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] TOSSIM : simulate a base station / running BaseStation*.nc
Goodmorning everybody, I want to simulate a base station using tossim (tinyos 2.x), I try to run the BaseStation example. It works fine but there is no communication. Where is the problem? Where the first message is sended in the source code? Have I to use the java program (net.tinyos.tools.Listen) to run this example? Is there somewhere where I can learn how to completely run this example ? best regards ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] TOSSIM : simulate a base station / running BaseStation*.nc
Goodmorning everybody, I want to simulate a base station using tossim (tinyos 2.x), I try to run the BaseStation example. It works fine but there is no communication. Where is the problem? Where the first message is sended in the source code? Have I to use the java program (net.tinyos.tools.Listen) to run this example? Is there somewhere where I can learn how to completely run this example ? best regards ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help