Hi,
    I am new to Tinyos and Tossim. I am finding in difficult to set a new
CCA(Clear channel assessment) threshold. The instructions are given as:

1>>> from TOSSIM import *
2 >>> t = Tossim ([])
3 >>> r = t. radio ()
4 >>> dir(r)
5 [' __class__ ', '__del__ ', '__delattr__ ', '__dict__ ', '__doc__ ',
6 '__getattr__ ', '__getattribute__ ', '__hash__ ', '__init__ ',
7 '__module__ ', '__new__ ', '__reduce__ ', '__reduce_ex__ ',
8 '__repr__ ', '__setattr__ ', '__str__ ', '__swig_getmethods__ ',
9 '__swig_setmethods__ ', '__weakref__ ', 'add ', 'connected ',
10 'gain ', 'remove ', 'setNoise ', 'this ', 'thisown ',
11 ]

And it is also written later that these two functions below help us know
the current CCA threshold also to set the new threshold.

 threshold(): Return the CCA threshold.
 setThreshold(val): Set the CCA threshold value in dBm. The default is
-72dBm.

But neither do these functions exist the directory, nor do they work when I
type r.threshold() or r.setThreshold(-120(say)).

It would be very kind if you could make me aware of any other function or
method that exists by which I can change the existing CCA threshold. Also,
it would nice if you could mention the steps, as I am a novice.

Regards,
               Indranil

-- 
Indranil Chakraborty
3rd yr, Electronics And Telecommunications Engg,
Jadavpur University
Kolkata,India
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to