Hi Michael,
 
I have seen that in the module CC2420ControlM, inside the configuration CC2420RadioC, there is the implementation of the function SetRFPower, like this:

command result_t CC2420Control.SetRFPower(uint8_t power) {

    gCurrentParameters[CP_TXCTRL] = (gCurrentParameters[CP_FSCTRL] & 0xfff0) | (power << CC2420_TXCTRL_PAPWR);
    call HPLChipcon.write(CC2420_TXCTRL,gCurrentParameters[CP_TXCTRL]);
    return SUCCESS;

  }

But I do not find were is it call. I suposed that it would be in the module CC2420RadioM, but it is not there.

And to finish, two more things. The first one,  I do not see were is defined the variable  TXPOWER_MAX And secondly, when you write in MakeXbowLocal:

      CFLAGS +=-DCC2420_TXPOWER=TXPOWER_MAX

      CFLAGS +=-DCC2420_DEF_CHANNEL=26

are you just printing in the console the sentenses DCC2420_TXPOWER=TXPOWER_MAX and DCC2420_DEF_CHANNEL=26, or you are really setting the power and the frequency? I want to know where are DCC2420_TXPOWER and DCC2420_DEF_CHANNEL declarated.

Than you very much in advance,

Andres

 

 

 

>From: Michael Schippling <[EMAIL PROTECTED]>

>To: Andres Aberasturi <[EMAIL PROTECTED]>
>CC: [email protected]
>Subject: Re: [Tinyos-help] set frequency and power for the CC2420 in Micaz motes
>Date: Wed, 07 Jun 2006 17:01:38 -0600
>
>IF you poke down a bit further in MakeXbowLocal you should see
>things like:
>
>     CFLAGS +=-DCC2420_TXPOWER=TXPOWER_MAX
>     CFLAGS +=-DCC2420_DEF_CHANNEL=26
>
>for the micaz....is that what you are looking for?
>MS
>
>
>
>Andres Aberasturi wrote:
>>Hi all,
>>
>>At this moment I am working with the chipcon CC2420 in the MicaZ
>>motes. I would like to know if I can change the frequency and the
>>power, and how can I do it?
>>
>>I have seen that for the mica2 motes, this is made in the
>>MakeXbowLocal:
>>
>>CFLAGS = -DCC1K_DEFAULT_FREQ=RADIO_916BAND_CHANNEL_00
>>CFLAGS += -DRADIO_XMIT_POWER=0xFF
>>
>>But what happens if I use the MicaZ? Which range of values can I
>>use for micaz?
>>
>>Thanks in advance,
>>
>>Andrés
>>
>>_________________________________________________________________
>>¿Estás pensando en cambiar de coche? Todas los modelos de serie y
>>extras en MSN Motor. http://motor.msn.es/researchcentre/
>>
>>_______________________________________________
>>Tinyos-help mailing list
>>[email protected]
>>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Encuentra una aventura, un romance o al amor de tu vida. Date de alta gratis.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to