[Tinyos-help] How to control the radio power in iris platform?

Dan neikuer02 at gmail.com
Sun May 11 18:14:16 PDT 2008


Thanks for your info. Actually I'm also doing the same stuff. I have
another question: how to get RSSI value of received packets? It's easy
to get this info for micaz(cc2420), but I can't find related functions
in the directory RF230. Do I have to read the register directly?
Thanks!

~Dan

On 5/11/08, Janos Sallai <sallai at isis.vanderbilt.edu> wrote:
>
>
>
> In my previous mail I meant:
>
>
>
> "If you _always_ want to send with some predefined transmit power, you need
> to define the RF230_DEF_RFPOWER preprocessor variable (e.g. by adding
> PFLAGS+=-DRF230_DEF_RFPOWER=9 to your Makefile)."
>
>
>
> Janos
>
>
>
>
> From: tinyos-help-bounces at millennium.berkeley.edu
> [mailto:tinyos-help-bounces at millennium.berkeley.edu] On
> Behalf Of Janos Sallai
> Sent: Sunday, May 11, 2008 3:23 PM
> To: Xiaojun Zhu; tinyos-help at millennium.berkeley.edu
> Subject: Re: [Tinyos-help] How to control the radio power in iris platform?
>
>
>
>
> Xiaojun,
>
>
>
> If you _always_ want to send with some predefined transmit power, you need
> to define the RF230_DEF_RFPOWER preprocessor variable (e.g. by adding
> -DRF230_DEF_RFPOWER=9). This defines the TX_PWR field of the PHY_TX_PWR
> register.  Please see pp 59—60 of the rf230 data sheet for the supported
> power values (0:most power, 0xf: least power,
>
> http://www.atmel.com/dyn/resources/prod_documents/doc5131.pdf
> )
>
>
>
> Alternatively, you can set the transmit power on a per packet basis through
> the PacketTransmitPower interface of DefaultPacketC.  That is, you need to
> set the transmit power every time before calling AMSend.send.
>
>
>
> You need to add this wiring to your configuration (assuming the module where
> you set the transmit power is called MyAppC.nc):
>
>
>
> components DefaultPacketC;
>
> DefaultPacketC.PacketTransmitPower ->
> MyAppC.PacketTransmitPower;
>
>
>
> Then, your module:
>
>
>
> uses interface PacketField<uint8_t> as PacketTransmitPower;
>
> //…
>
> implementation {
>
> //…
>
> call PacketTransmitPower.set(&my_message_t, /* some small
> value here, see the rf230 datasheet*/);
>
> call AMSend.send(addr, &my_message_t, len);
>
>
>
> Janos
>
>
>
>
> From: tinyos-help-bounces at millennium.berkeley.edu
> [mailto:tinyos-help-bounces at millennium.berkeley.edu] On
> Behalf Of Xiaojun Zhu
> Sent: Friday, May 09, 2008 11:46 PM
> To: tinyos-help at millennium.berkeley.edu
> Subject: [Tinyos-help] How to control the radio power in iris platform?
>
>
>
>
> Hi all,
>
>
>          I want to make the mote not so powerful so that the message can
> reach the destination only by multi-hop in a limited area,like in  a room.
> The reason is that I want to study the behavior of MULTI-HOP in my lab. I
> search this list and find some one posted a question similar to this
> without replying. Is that possible? I'm using Iris platform.
>
>
>          Please let me know if my expression is not so clearly.
>
>
>
>
>
>
>
>
>
>
>
>             Thanks,
>
>
>
>
>
>            Regards,
>
>
>            Xiaojun
>
>
>
>
>
>
>
>
> ________________________________
>
>
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
> now.
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



More information about the Tinyos-help mailing list