[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] freq_



Hi Alvin C. Valera & Seniors, 

Thanks for help. It worked! The frequency does change when I "cout << freq_" in 
the WirelessPhy constructor. However, they still can communicate even when the 
node have different frequencies!

#=========================
#Create node_(0) to use 30K carrier freq
Phy/WirelessPhy set freq_ 3e+4
$ns_ node-config -phyType Phy/WirelessPhy
set node_(0) [$ns_ node]  

#Create node_(1) to use 40K carrier freq
Phy/WirelessPhy set freq_ 4e+4
$ns_ node-config -phyType Phy/WirelessPhy
set node_(1) [$ns_ node]
#==========================
 
Does anybody know how to stop the node from communicating when they have 
different frequencies? Any idea please.

Regards,
Terence

> On Tue, 24 Jul 2001 [email protected] wrote:
> 
> > Hi Seniors,
> > 
> > How do I use the variable freq_? 
> > 
> > I tested it in a wireless environment by giving different freqs to
> different 
> > nodes, but they can still communicate. Why?
> > 
> > node_(0) set freq_ 30000
> > node_(1) set freq_ 40000
> > 
> > Regards,
> > Terence
> > DSO/DS/IEP
> > DID 7727252
> > 
> > 
> 
> Alvin C. Valera
> 
________________________________________________________________________________
> Centre for Wireless Communications     |    School of Computing
> 20 Science Park Rd, #02-43/37          |    National University of
> Singapore
> Teletech Park, Singapore Science       |    
> Park II, Singapore 117674              |
> 
_______________________________________|________________________________________
> 
> 



Regards,
Terence
DSO/DS/IEP
DID 7727252