[Tinyos-help] RE : how to simulate the Surge application in tossim(
I made a mistake in the last msg)
funofnet Funofnet
funofnet at yahoo.fr
Thu Apr 3 05:39:39 PDT 2008
Sorry I made a mistake in the MyLossyModel
Hi I am pleased to reply to your message because I am also trying to modify Surge Application:
First tip; If you watch the makefile of surge you find that the routing protocol is Route (PFLAGS= -I%T/lib/Route ) not Mintroute wich is the fist routing protocol for tinyOS.
If you want to change to Mintroute simply modify:
PFLAGS= -I%T/lib/Route by PFLAGS= -I%T/lib/Mintroute
and in the configuration modify MultiHopRouter as multihopM by WMEWMAMultiHopRouter as multihopM
To run Surge application
$ make pc
$ export DBG=route // to show routing information especially Neighbour table
$./build/pc/main.exe 10 > debug.txt
(you can use lossyBuilder to generate a lossy Model extension .nss) and for the execution type: $./build/pc/main.exe -rf=MyLossyModel.nss 10 > DebugFile.txt
(you can use it by typing :
$ java net.tinyos.sim.LossyBuilder -h
//to show the help)
To run MainClass
While Surge is running open 2 other cygwin window (the first one is optional):
in the first one type:
$ export MOTECOM=tossim-serial
$ java net.tinyos.sf.SerialForwarder -comm tossim-serial
you should see the SerialForwarder GUI and you see this line :Connection opened to Tossim command port
in the second window (and it is what you are asking) type:
$ export MOTECOM=tossim-serial
$ java net.tinyos.surge.MainClass 125
you should see your tree topology the root is node 0
Tip2: To better understanding The Mintroute Protocol search this PDF titled :
Taming the Underlying Challenges of Reliable Multihop Routing in Sensor Networks
I hope that I gave you a simple overview of surge.
Best regards,
Funofnet
Envoyé avec Yahoo! Mail.
Plus de moyens pour rester en contact.
_____________________________________________________________________________
Envoyez avec Yahoo! Mail. Plus de moyens pour rester en contact. http://mail.yahoo.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080403/4a11509c/attachment-0001.htm
More information about the Tinyos-help
mailing list