[ns] How to get the Nodes' coordinate from TCL to C++

2009-01-22 Thread Mathiew Moussa
Dear NS Users, Can someone please tell me how you can retrieve the coordinates of the network nodes from a TCL file into C++. So is their some loop or something that can be written in C++ and traverses all the nodes and gets X, Y, Z, and how is it written. Hope you can help me. Thanks,

[ns] NAM don't update the mobile node movement's starting position

2009-01-22 Thread Syed Md. Ashraful Karim
Hi I am using NAM to show the mobile node movement in ns2.33. NAM is showing the moving nodes, but another initial image of the node is also kept in the screen. can anybody tell me why? and some of the nodes are sometimes shown in ash color, not in the default color black. If you know why and how

Re: [ns] Setting tcl script variables from inside C++ code

2009-01-22 Thread Waleed Tuffaha
Hello Fernando, You can use the following code: Tcl tcl = Tcl::instance(); sprintf(tcl.buffer(), set my_tcl_var %f, 10.123); tcl.eval(); Note that you can use the same method to execute any command on Tcl. You can find more information in chapter 3 of the ns-manual. Good luck Waleed On Tue,

Re: [ns] example on aodv simulation

2009-01-22 Thread Mubashir Rehmani
Hi Samar asf, You can use the following code to run a simple example of aodv. # A 3-node example for ad-hoc simulation with AODV # Define options set val(chan) Channel/WirelessChannel;#

Re: [ns] How to get the Nodes' coordinate from TCL to C++

2009-01-22 Thread Mathiew Moussa
Hello Walid, Thanks for the reply. You said getting the coordinates from the TCL file easier... i have them stored in a topography.tcl file (or so i recall) that has the X Y Z coordinates of each sensor. So what's the way to get them from the TCL file directly to be used in C++ ?? Thanks

[ns] Fw: Cbr traffic use in Tcp or not for MAODV

2009-01-22 Thread vaishali mandhare
--- On Mon, 19/1/09, vaishali mandhare v_mandh...@yahoo.com wrote: From: vaishali mandhare v_mandh...@yahoo.com Subject: Fw: Cbr traffic use in Tcp or not for MAODV To: ns user ns-users@isi.edu Date: Monday, 19 January, 2009, 9:16 PM --- On Mon, 19/1/09, vaishali mandhare

Re: [ns] How to determine txpower from Pt_

2009-01-22 Thread Waleed Tuffaha
Hello Manish, My understanding is that the two parameters are not related. Pt_ defines the amount of power transmitted from the antenna (Phy/WirelessPhy), and thus; it defines (together with the RXThresh_ parameter) the range of the mobile-node. And it is not used by the energy model. txpower

[ns] NS transmission powers based in tinyOS

2009-01-22 Thread fhg07
In the protocol that I am currently implementing on NS2 the transmission powers does vary a lot. Its initial implemention was done in tinyOS, and that is why I need to simulate its available transmission powers. There is a range of 255 possible ones in tinyOS, and I would like to change the NS

[ns] How to generate energy traces periodically

2009-01-22 Thread manish chaturvedi
Hi, I am using energy model in my NS simulation. When energy trace is ON, every time the node energy changes, the trace is generated. This makes trace file size larger. Is there any way to generate trace of energy status of all nodes at some fixed time or periodically? Please inform or point

[ns] print messages describing the simulation from the terminal to a text file

2009-01-22 Thread Nadine Chen
Hi all, Can you tell me please how can I print messages written in the terminal window during the simulation , to a text file? Thank you for your help.

[ns] HMIP example

2009-01-22 Thread Vinicio Guanochanga
Hi users,, Anybody can send me an example of HMIP, I'm trying to do it, but My script don't do a handoff..,,, My script is: # Main Program proc main {} { global opt ns namtrace tracefd cn_ node_ wtopo source /home/vinicio/ns-allinone-2.31/ns-2.31/tcl/mobility/timer.tcl # Define

[ns] wireless node

2009-01-22 Thread lobmar
Hi ns-users, I need help, I want use two antennas per node. Can anyone help me? Thanks Avec Voila, réalisez en toute simplicité votre videoblog ! http://video.voila.fr/mktg/?op=videoblog

[ns] Re : print messages describing the simulation from the terminal to a text file

2009-01-22 Thread Nadine Chen
Hi, Thank you for Diana , Félix and moses who gave me the solution of printing messages to a txt file, the solution is: ns name_of_tclFile.tcl  file.txt Thanks. --- En date de : Jeu 22.1.09, Nadine Chen nadine...@yahoo.fr a écrit : De: Nadine Chen nadine...@yahoo.fr Objet: [ns] print messages

[ns] SIMULATION OF COOPERATIVE MAC PROTOCOLS

2009-01-22 Thread Nithin Reddy
Hi . I am beginner in ns2, and I want to learn it quickly because I need it in my project. I have to simulate cooperative mac protocols. Has anyone worked on it. If so, please help me. I want to know how to run simple IEEE 802.11b MAC CSMA/CA DCF protocol on ns-2 so that I can start my work.