[ns] Validation: flows_combined, flows_forced, flows_unforced

2007-01-02 Thread Scott Ricketts
I recently built allinone-2.30, and validation fails only on test-all-red. The problems are in flows_combined, flows_forced, and flows_unforced. The *.test files for each of these subtests are not even close to their associated refs; instead, they are the same as the red_twowaybytes ref file. Is t

Re: [ns] Change node address in ns

2007-01-23 Thread Scott Ricketts
Try: $node set address_ $addr Disclaimer: I am an NS beginner. On 1/23/07, Alicia Triviño <[EMAIL PROTECTED]> wrote: > > Hello: > > Does anybody know how to change the node address in the ns ? > > Thanks in advance, > > > Alicia Triviño / Tl. +34-95.213.71.91 > Dpto

Re: [ns] Plz Help me (((Emergency)))

2007-02-03 Thread Scott Ricketts
One option is to use message passing with destination address -1 for broadcasting. I think there is an example Otcl script somewhere in ns/tcl/ex where message passing is extended for flooding. I hope that helps. Scott On 2/3/07, Amin Irandoost <[EMAIL PROTECTED]> wrote: > > Hi > Please tell me

Re: [ns] Sensing range in Sensor network

2007-02-06 Thread Scott Ricketts
What do you mean by sensing range? While there may be extensions of NS for simulating sensing capabilities of sensor nodes, I do not think there is such a thing in the base package. -Scott On 2/6/07, Amin Irandoost <[EMAIL PROTECTED]> wrote: > > Hi all > how can i set sensing range in wireless s

Re: [ns] problem with setting environment variables

2007-02-07 Thread Scott Ricketts
There is no shortage of web resources for answering unix questions like how to set environment variables. You will need to add ns to your PATH to get rid of the "command not found" error. -Scott On 2/7/07, Onyekachi <[EMAIL PROTECTED]> wrote: > > Hello ns-users, > Please I am a new user of the n

Re: [ns] Sensing range in Sensor network

2007-02-07 Thread Scott Ricketts
Perhaps you are using some of the objects in ~ns/sensor-nets. I have not been able to find any documentation on these agents. If anyone else has, I would be interested to hear about it. Thanks, Scott On 2/6/07, Scott Ricketts <[EMAIL PROTECTED]> wrote: > What do you mean by sensing ran

Re: [ns] How to call a procedure after a constant delay

2007-02-08 Thread Scott Ricketts
It looks to me like you are putting the Otcl interpreter in an infinite loop before the simulation starts. That is, "loop" is getting scheduled every time the while loop iterates, but it does not actually get called until you do $ns run, so $value never gets set. -Scott On 2/8/07, Somera Javed <

Re: [ns] How to call a procedure after a constant delay

2007-02-09 Thread Scott Ricketts
of every 0.01 sec > > > > proc loop {} { > > global abc value > > set value [$abc get_value] > > exit 0 > > } > > set time 0.2 > > set inc 0.01 > > while 1 { > > $ns at $time "loop" > > set tim

Re: [ns] commands creation problem

2007-02-11 Thread Scott Ricketts
The NS manual has a pretty good section on Otcl/C++ linkage, which should be able to help answer your question. In general there is a corresponding C++ object for each Otcl object you create in your script. You can grep the source code for the Otcl name, like "Agent/UDP". Scott On 2/11/07, safaa

[ns] Modeling CPU power consumption

2007-02-12 Thread Scott Ricketts
In this documentation for the new energy model in NS-2 (http://www.isi.edu/ilense/software/smac/ns2_energy.html), it is mentioned that the energy model is generic enough to be extended to other domains like CPU power consumption. I agree, and think this would be a useful tool. Has anyone else impl

Re: [ns] Could not schedule timer

2007-02-16 Thread Scott Ricketts
I am having the same problem (ns-2.30). The bad timer in my case is mhCS_, the carrier sense timer. It throws the error during the following call in SMAC::checkToSend() ... mhCS_.sched(CLKTICK2SEC(difs_) + cw); ... Tarun, can you investigate your code and try to find out when your error is gett

Re: [ns] C++ codes for Wireless nodes

2007-02-28 Thread Scott Ricketts
The directory: ~ns/mobile holds the relevant wireless support. The way I generally find C++ implementations of Otcl objects is "grep" - a linux tool for searching file text. For example, if you are looking for the implementation of Agent/UDP, try grep -R -I "Agent/UDP" ~ns/* -Scott On 2/28/07,

Re: [ns] scenario files

2007-03-02 Thread Scott Ricketts
source file.scn This command is like "#include" in C, in that it just pulls the file into your script. At least that is how I use scenario files. Maybe there is a better way. Scott On 2 Mar 2007 08:52:40 -, shalini c. thilakan <[EMAIL PROTECTED]> wrote: > > what is the procedure for inclu

Re: [ns] Bug in 802.15.4 implementation

2007-03-07 Thread Scott Ricketts
Tim, Would it be possible to post a pointer to your 802.15.4 code? Thanks, Scott On 3/7/07, Tim Allemeersch <[EMAIL PROTECTED]> wrote: > > Hi all, > > This is indeed a bug in the 802.15.4 ns-2 module. I have had this > problem too. Multiple times, a node would just stay in the 'busy > channel'

Re: [ns] battery parameters in NS-2

2007-03-08 Thread Scott Ricketts
The manual has a section about using node-config to setup those parameters. Search the manual for "node-config" -- hopefully that will help. -Scott On 8 Mar 2007 06:19:16 -, shalini c. thilakan <[EMAIL PROTECTED]> wrote: > > hi all, > where can i find configuration files in NS-2 where all th

Re: [ns] generating static topology

2007-03-11 Thread Scott Ricketts
I think there is good documentation in the manual on the random number generator support in ns. Hopefully that wil help. -Scott On 3/11/07, Joshi <[EMAIL PROTECTED]> wrote: > > Hi, > How to generate a random distribution of static nodes using setdest? > > Thank you in advance. > GP Joshi >

Re: [ns] (emergency)help me[about reading variable value in tcl]

2007-03-20 Thread Scott Ricketts
I think you have to change set x [$te $i] to set x [$te i_] -Scott On 3/20/07, Amin Irandoost <[EMAIL PROTECTED]> wrote: > > hi dear friends > how to read variable value of C++ in OTCL?? > for example a partial of code are > class test:public TclObject{ > public: > int i; > test(); > . > . >

Re: [ns] create mobile node in specified time

2007-03-21 Thread Scott Ricketts
I am not sure how to specify a time for creating a node. However, a possible work-around is to initially give the node zero energy. Then when you want it to be active, give it some energy. There are some previous posts about turning nodes on and off in this manner -- a quick search of the list sho