You should first complete the TOSSIM tutorial: http://docs.tinyos.net/index.php/TOSSIM
It will give you a lot of helpful information about how to setup simulation, how to run simulation, and how to get data output. - om_p On Mon, Jul 26, 2010 at 10:59 PM, Hassan Abid <[email protected]> wrote: > yes I see at test.py. It is for more than 2 nodes. > > But when I compile the TestNetwork using make micaz sim. the following error > comes out: > > > u...@cu:/opt/tinyos-2.x/apps/tests/TestNetwork$ make micaz sim > mkdir -p simbuild/micaz > placing object files in simbuild/micaz > writing XML schema to app.xml > compiling TestNetworkAppC to object file sim.o > ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim > -fnesc-nido-tosnodes=1000 -fnesc-simulate > -fnesc-nido-motenumber=sim_node\(\) -fnesc-gcc=gcc -Wall -Wshadow -Wnesc-all > -target=micaz -fnesc-cfile=simbuild/micaz/app.c -board=micasb > -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000 > -I/opt/tinyos-2.x/tos/lib/net -I/opt/tinyos-2.x/tos/lib/net/drip > -I/opt/tinyos-2.x/tos/lib/net/4bitle -I/opt/tinyos-2.x/tos/lib/net/ctp > -DIDENT_APPNAME=\"TestNetworkAppC\" -DIDENT_USERNAME=\"user\" > -DIDENT_HOSTNAME=\"cu\" -DIDENT_USERHASH=0xc4203e64L > -DIDENT_TIMESTAMP=0x4c4e7521L -DIDENT_UIDHASH=0xc69393a7L > -Wno-nesc-data-race TestNetworkAppC.nc -fnesc-dump=components > -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs > -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml > In file included from /opt/tinyos-2.x/tos/lib/tossim/ActiveMessageC.nc:51, > from TestNetworkAppC.nc:18: > In component `CpmModelC': > /opt/tinyos-2.x/tos/lib/tossim/CpmModelC.nc: In function > `noise_hash_generation': > /opt/tinyos-2.x/tos/lib/tossim/CpmModelC.nc:130: implicit declaration of > function `sim_mote_get_radio_channel' > /opt/tinyos-2.x/tos/lib/tossim/CpmModelC.nc:130: too many arguments to > function `sim_noise_generate' > /opt/tinyos-2.x/tos/lib/tossim/CpmModelC.nc:133: implicit declaration of > function `sim_mote_get_radio_channel' > /opt/tinyos-2.x/tos/lib/tossim/CpmModelC.nc:133: too many arguments to > function `sim_noise_generate' > /opt/tinyos-2.x/tos/lib/tossim/CpmModelC.nc: In function `checkReceive': > /opt/tinyos-2.x/tos/lib/tossim/CpmModelC.nc:267: implicit declaration of > function `sim_mote_get_radio_channel' > /opt/tinyos-2.x/tos/lib/tossim/CpmModelC.nc: In function `packetNoise': > /opt/tinyos-2.x/tos/lib/tossim/CpmModelC.nc:291: implicit declaration of > function `sim_mote_get_radio_channel' > /opt/tinyos-2.x/tos/lib/tossim/CpmModelC.nc: In function > `sim_gain_receive_handle': > /opt/tinyos-2.x/tos/lib/tossim/CpmModelC.nc:340: implicit declaration of > function `sim_mote_get_radio_channel' > /opt/tinyos-2.x/tos/lib/tossim/CpmModelC.nc: In function > `enqueue_receive_event': > /opt/tinyos-2.x/tos/lib/tossim/CpmModelC.nc:418: implicit declaration of > function `sim_mote_get_radio_channel' > /opt/tinyos-2.x/tos/lib/tossim/CpmModelC.nc: At top level: > /opt/tinyos-2.x/tos/lib/tossim/CpmModelC.nc:49: > `Model.setPendingTransmission' not implemented > In component `SerialActiveMessageC': > /opt/tinyos-2.x/tos/lib/tossim/SerialActiveMessageC.nc:53: > `AMPacket.getRtxCount' not implemented > /opt/tinyos-2.x/tos/lib/tossim/SerialActiveMessageC.nc:53: > `AMPacket.setRtxCount' not implemented > make: *** [sim-exe] Error 1 > > > Any help ? > > > Regards > > > Hassan > > On Tue, Jul 27, 2010 at 4:26 AM, Omprakash Gnawali <[email protected]> > wrote: >> >> On Mon, Jul 26, 2010 at 1:46 PM, Hassan Abid <[email protected]> >> wrote: >> > Yes I have seen that already. But I guess it is for 2 nodes only. >> >> How did you guess that? Did you look at the test.py file? >> >> - om_p > > > > -- > Hassan Abid > Research Assistant > CoNNekT Lab > School of Electrical Engineering and Computer Science > National University of Sciences and Technology > Islamabad, Pakistan > > web: http://connekt.seecs.nust.edu.pk/ > VoIP: +92-51-90852081 > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
