Hi,
The best thing to do is:
1) switch to Linux
2) copy ns-allinone-2.29.1.tar.gz from Windows folders to e.g.
/home/yourhome/
3) decompress: I used ark under KDE (Slackware 10.2) but tar -xvf
ns-allinone-2.29.1.tar.gz should bo OK
4) the next you know
DD
- Original Message -
From:
i got a bug while executing the below procedure.
(Myagent is a udp agent created that just functions as
a UDP agent that ships with ns)
proc ctrlAckDcs {} {
global ns ctrler dc
set group [Node allocaddr]
set p0 [new Agent/Myagent]
$ns attach-agent $ctrler $p0
$p0 set dst_addr_ $group
$p0 set
Hi All,
I want to know how much energy is used by a wireless mobile node in
transmitting 1KB of data from one node to another node in its neighbor. Is
there any formula to find out this information. Please help me with it.
Thanks
Anup
--
I don't know the key to success, but the key to failure
Hi Anupama,
Answer to your first question is as follows:
MobileNode * curNode = (MobileNode *) (Node::get_node_by_address(id_)); //
id_ is the id of node
double x,y,z;
curNode-getLoc(x,y,z);
This will assign the X,Y,Z coordinate value to your local variable.
I hope this helps.
Anup
On
Hi,
I have a similar problem (I am able to get the MobileNodes), but I need to
get access to a list of the neighbors of this node. In my case, I want to
use OLSR, I need to know which nodes are available in the current network,
but it would be already enough if I would get information about the
Hi,
One of solving this problem can be as follows
int findNeighbors(int *neighborList)
//returns the total number of neighbors and populates neighborList
{
MobileNode * curNode = (MobileNode *)(Node::get_node_by_address(id_));
if(curNode==NULL)
{
printf(findNeighbors Error: