[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [ns] freq_
> -----Original Message-----
> From: [email protected] [SMTP:[email protected]]
> Sent: Wednesday, July 25, 2001 5:23 AM
> To: us-users
> Cc: [email protected]
> Subject: 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
>
[Neundorf Alexander]
It seems you actually want to do FDMA or something similar. Therefor you have to implement something (I am also looking into this problem right now). Probably you need to write a new FDMA MAC class and use for each frequency an own channel, I think.
I'm not an expert, but these are my thoughts so far. If you succeed, please tell me.
Bye
Alex
>