[ns] setting the radio and sensing ranges of a sensor node

2006-06-24 Thread Alper BEREKETLI
Hi all, I am performing some simulations on wireless sensor networks and would like to know how I can set and use the "radio communication" and "sensing" ranges of a sensor node... Where can I find the sensing range of a wireless node so that I can calculate the coverage of an event region? I w

[ns] TCL variable substitution problem

2006-06-24 Thread Nicholas Loulloudes
Hello, I have the following problem regarding TCL variable substitution I have the following code in ns2: set Appl_udp_0_1 [new Agent/UDP] $ns attach-agent $n(0) $Appl_udp_0_1 $Appl_udp_0_1 set class_ 1 where the first number in $Appl_udp_0_1 (i.e 0) characterizes the node the UDP agent is ru

[ns] MultiState error model

2006-06-24 Thread Kacper Kurowski
Hello Could anyone tell me how to create a multistate error model in NS-2 ? I used the example for documentation but it's behaving in a strange way... I want my multistate error model to have from time 0 to 30 loss rate equal to 0.1% from time 30 to 60 loss rate equal to 10% and from time 60 to 10

[ns] R: Movements in wireless scenario

2006-06-24 Thread Marco Fiore
Andrea, god is only used for statistical purposes. If you are interested in generating nodes movement simply use the 'setdest' command, ignoring god. E.g. $ns_ at 10.0 "$node_(0) setdest X Y S" where X,Y are the coords of destination and S is the speed (in m/s). bye, Marco >Messaggio o

[ns] Movements in wireless scenario

2006-06-24 Thread Andrea M
Hi I want to introduce movements in my wireless simulations (I'm using UM-OLSR), and for large numbers of nodes and movements I'm using SETDEST ( ns-2.29\indep-utils\cmu-scen-gen\setdest). An example of what this utility makes is following: "$node_(12) set X_ 365.446284881986 $node_(12) set Y_ 72

[ns] question about energy model of 802.15.4

2006-06-24 Thread chen guoming
Dear All: recently I am doing simulations to compare SMAC and 802.15.4. I found that a problem about the 802.15.4 implemented in NS2. In the file p802_15_4mac.cc, there are some instruction about the sleep mode: //-- Notes for power-saving: // It turns out to