|
From: Adam D. <ad...@si...> - 2009-11-03 10:16:43
|
There is a shell command called sendtest that can be used. You should be able to do something like this: Edit the file examples/sky-shell/sky-shell.c Add the line shell_sendtest_init(); among the other *_init(); calls. You will probably need to comment out some of the other _init()s to make the whole thing fit into memory (e.g. remove shell_sky_init()). Connect two motes to your pc, then upload the code as usual: make sky-shell.upload Login to one of them: make login MOTE=1 then do: sendtest x.y 1000 100 where x.y is the node ID of the other one (obtain with 'make login MOTE=2' and press return). Fiddle with the sendtest parameters to get different results. Note that the throughput data you get are when the data is sent over the default power-saving MAC protocol X-MAC and are therefore unexpectedly low. I just added a printout to the sendtest command that prints out the radio duty cycle too, to highlight this tradeoff, so update the CVS before you go this. To try the different power-saving MAC options, do this: make clean make DEFINES=MAC_DRIVER=lpp_driver sky-shell.upload echo "sendtest x.y 1000 100" | make login MOTE=1 make clean make DEFINES=MAC_DRIVER=nullmac_driver sky-shell.upload echo "sendtest x.y 1000 100" | make login MOTE=1 and you should see quite a bit of difference in throughput as well as in the radio duty cycle with the different MAC protocols. /adam Melanie Schranz wrote: > Hello everybody! > > I just want to measure the network performance of a network consisting > of 2 Tmote Sky motes. > What can I use? > It is urgent!! > > Thanks in advance > Melanie > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > > > ------------------------------------------------------------------------ > > _______________________________________________ > Contiki-developers mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/contiki-developers -- Adam Dunkels <ad...@si...>, +46707731614 http://twitter.com/adunk | http://www.sics.se/~adam/ |