[ns] How to assign different transmission ranges for different nodes ??

Mathiew Moussa mmm59 at aub.edu.lb
Mon Mar 2 04:21:16 PST 2009


Hi Kiran,

Thanks for the reply.

I didnt really understand what you tried to say, do you mean i set the  
range for each node in the initialization loop, if yes, can you attach  
a small example.

I'm new to ns2, so I was also wondering, can you retrieve the  
transmission range value of the nodes in C++ ?

Thanks alot.
Mathiew

Quoting Kiran K Chauhan <kiran.cabs at gmail.com>:

> Hi Mathiew,
>
> You can do the same using the node-config for all nodes separately.
> Since Phy/WirelessPhy set Pt_ 0.2818       ;# 250m gets used during node
> configuration.
> So node-config for one node followed by initializing the node and wise versa
>
> Regards
>
> Kiran
>
> On Mon, Mar 2, 2009 at 3:12 PM, Mathiew Moussa <mmm59 at aub.edu.lb> wrote:
>
>>
>> Hi All,
>>
>> I was wondering if anyone knows how to assign different transmission
>> ranges for various Nodes in the network.
>>
>> In my network i have sinks and sensor and i want the sinks to have a
>> larger transmission range than that of the sensors.
>>
>> we usually assign the transmission range of nodes using a command in
>> tcl similar to :
>>
>> #Phy/WirelessPhy set Pt_ 0.2818       ;# 250m
>>
>> and so i was also wondering what the constant "RANGE" in mobile/god.h
>> stood for and what range it controlled ?? The RANGE is used in god.cc
>> by method isNeighbor to calculate if 2 nodes are neighbors.
>>
>>
>> I hope someone can help we this because it's urgent, thanks.
>>
>> Mathiew
>>
>>
>
>
> --
> ........................................................................................................................................................
> Every footstep in life is full of possibilities we just need to know our
> ability to explore them
> ........................................................................................................................................................
> ........................................................................................................................................................
>






More information about the Ns-users mailing list