Hi there I think there is no other cleaner or easiar way to do that unless you modify the code.
One thing you have to be aware of is that by modifying the transmission range, you are only changing the receiver threshold, A distance from which a receiver can receive. Again there are three different transmit power levels that are given for the wavelan Modem 40m 8.5872e-4 100m 7.214e-3 250m 02818 Maybe you need to use one of these parameters, the closest to your required transmission range and then calculate the RXthreshold values, to get a better result. Also you need to be aware of CSthreshold,. If you are limiting the node's transmission range to 40m or 100m or any value, the CSthreshold value, will still be very large, about 550m by default, you might also want to tweak that parameter to see if this improves your results I hope this helps > Hi, > > Can you tell me a clean way to change transmission and interference ranges > in ns-2? > I tried the threshold program given ~ns/indep-utils/propagation/ but that > somehow is not giving correct values. > > Regards, > -- > Ashish Sangwan > B.Tech, Computer Science & Engineering > IIT Delhi > > -- > I do know everything, just not all at once. It's a virtual memory problem. > Kind regards Qasim Raza Iqbal PhD Candidate, ACNRG Lab N504, Office N505 Adaptive Communications Networks Research Group, School of Engineering And Applied Science Aston University Birmingham B4 7ET United Kingdom http://www.ee.aston.ac.uk/research/acrg/index.html