I read the cc2420 datasheet and modified it but unluckily it still didn't work. I modified the following code repectivcely.
#ifndef CC2420_DEF_RFPOWER #define CC2420_DEF_RFPOWER 0x1F // changed the 0x1F to 3 or 1, didn't work. #endif cheers, Bai ================================ On Wed, Dec 17, 2008 at 8:30 AM, Nitin Sharma <[email protected]> wrote: > Hi, > > Could you try setting it to 3 or a little higher instead and see? > > PA_Level 3 Output Power -25 , TXCTRL register 0xA0E3 > > The output power is programmable in 8 steps from approximately –24 to 0 > dBm. > > Page: 9 , 52 from CC2420 Data Sheet. > > Thanks, > > On Tue, Dec 16, 2008 at 2:47 PM, BAI LI <[email protected]> wrote: > >> Yes, i modified the code. the default value of REPOAWER is 31 at the >> maximum in Tinyos1.15. Then I changed it to 1. I believe nothing changed. >> The node still can communicate with other nodes at least 15 meters. It is >> not that good. I will try to use setRFPower. Is this the right value I >> should change in order to decrease the transimission distance. I am >> confused. Anyone who has experience, please help me. THanks in advanced. >> >> On Tue, Dec 16, 2008 at 11:16 AM, Razvan Musaloiu-E. < >> [email protected]> wrote: >> >>> Hi! >>> >>> On Mon, 15 Dec 2008, BAI LI wrote: >>> >>> Hi All, >>>> Anyone can tell me where to modify the power level in tinyos 1.x and >>>> tinyos >>>> 2.x? >>>> >>> >>> In tinyos-2.x you can set the global radio power of CC2420 by defining >>> the CC2420_DEF_RFPOWER to a different value or you can change it dynamically >>> on a per-packet basis using the setPower command from the CC2420Packet >>> interface. >>> >>> -- >>> Razvan ME >>> >> >> >> _______________________________________________ >> Tinyos-help mailing list >> [email protected] >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >> > > > > -- > Nitin Sharma >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
