Re: [ns] signal strength

2011-03-13 Thread arushi
Even I am facing this problem, of finding out the rssi in ns2 i have found the recv function but i dont know how to use the function in tcl script. Please if anyone could help, i'll b grateful fatima lakrami wrote: hey, i wanna know how to get the signal strength in ns2 and if there is

[ns] how to set distance of coverage of base station and its position

2011-03-13 Thread amareswararao k
hi all,  when i am trying to set the positions of base station using below # Create HA and FA # Position (fixed) for base-station nodes (HA FA). set HA [$ns_ node 1.0.0] $HA random-motion 0 $HA set X_ [expr $opt(x)/2-50] $HA set Y_ [expr $opt(y)/2-50] $HA set Z_ 0. set FA [$ns_ node

Re: [ns] help with ns codes

2011-03-13 Thread Justin
Serene, That really looks like 'awk' code. Where did you find the code? In a TCL script? Was it in something like this: exec awk { $3 / ($5 * $1) } ? Awk is a programming language (usually just on Linux/Unix) that very easily allows you to handle data. It functions on

[ns] Movement scenarios for Ad Hoc network

2011-03-13 Thread salahedin rehan
Hi, I am using this command ns setdest.cc -n 50 -p 200 -s 20 -t 500 -x 1000 -y 1000 50_nodes in order to generate a movement scenario but it gives me an error saying invalid command name /* while executing /* (file setdest.cc line 1). How can I do this?? Please reply urgently.

[ns] Debugging ns code (.cc files) with print statements

2011-03-13 Thread Ns Learner
Hello, I am trying to debug ns code (.cc files) with print or cout statements. With cout, I get this error message: error: ISO C++ forbids declaration of ‘cout’ with no type error: expected ‘;’ before ‘’ token I tried inserting using namespace std and it still gives me an error message.

[ns] Geocast code NS2

2011-03-13 Thread Angel Lopez
Hi, I'm implementing a geocast protocol for manet's, and i'll need to compare it. So, do you know about an available geocast code for manets in NS2? Thanks in advance. Angel Lopez.

[ns] vbr_traffic.cc in ns-allinone-2.34

2011-03-13 Thread sadaq afroz
I installed ns-allinone-2.34 on ubuntu 10.10 by following site http://getch.wordpress.com/2010/10/25/installing-network-simulator-in-ubuntu10-10/ MY gcc version is 4.4.5. But here I was unable to install VBR in ns-allinone-2.34. please tell me clear steps to create VBR.

[ns] how to set distance of coverage of base station

2011-03-13 Thread amareswararao k
hi all, could u please tell me how to set distance of coverage of a base station. thanks in advance