Hi,

I guess it might be easier to set transmission power in the "Makefile" itself. example:


Micaz or TelosB:
 CFLAGS += "-DCC2420_DEF_RFPOWER=1"
where X can be 1 to 31 (min to max)


For wiring, follow this diagram:
http://www.tinyos.net/tinyos-2.1.0/doc/nesdoc/telosb/chtml/tos.chips.cc2420.packet.CC2420PacketC.html

Something like this should work (App is the main component of your program)

implementation
{
components CC2420PacketC;

App.CC2420Packet -> CC2420PacketC;
}


--
Regards,
Saeid Yazdani
EE Tutorials


On 25-4-2013 0:05, Gandhimathi Velusamy wrote:
Hi Saied Yazdani,

Thank you ! I declare the methods setDefaultTxPower  in CC2420Config.nc. and implemented in CC2420ControlP.nc and passing the value t in CC2420TransmitP.nc . I am getting not connected error. I am confused with wiring.Could please, help to fix it. I am using micaz.

Thanks
Gandhimathi




On 24 April 2013 16:35, Saeid Yazdani <[email protected]> wrote:
You can check the CC2420Packet interface, it has these commands:

command uint8_t getLqi(message_t *p_msg) Get lqi value for a given packet.
command uint8_t getPower(message_t *p_msg) Get transmission power setting for current packet.
command int8_t getRssi(message_t *p_msg) Get rssi value for a given packet.
command void setPower(message_t *p_msg, uint8_t power) Set transmission power for a given packet.



you can more info on this link:
http://www.tinyos.net/tinyos-2.1.0/doc/nesdoc/telosa/

Regards,
Saeid Yazdani
http://www.eetutorials.com


On 24-4-2013 22:59, Gandhimathi Velusamy wrote:
Hi,
How can we check  the Transmit Radio Power?

Thanks
Gandhi


_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


--
Regards,
Saeid Yazdani
EE Tutorials



_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to