Hi
I define interface CC2420packet as
interface CC2420Packet { /** * Set transmission power for a given
packet. Valid ranges are * between 0 and 31. * * @param p_msg the
message. * @param power transmission power. */ async command void
setPower( message_t* p_msg, uint8_t power );//line 9 } But i am getting error
CC2420Packet.nc:9: syntax error before `*'How to fix it.
With regards Sivasankar
From: manish chaturvedi <[email protected]>
Subject: Re: [Tinyos-help] Reg:transmission power control for preamble
To: "SHIVASANKAR GANESAN"
<[email protected]>
Cc: "Berekely univ" <[email protected]>
Date: Monday, 15 November, 2010, 5:02 PM
Hi,
For setting transmit power for each packet separately, You can use
CC2420Packet interface provided by CC2420PacketC.
and use the function setPower of the interface.
call CC2420Packet.setPower(&pkt,31);//set the output power to max i.e 0 dBm
Refer to CC2420 data sheet for various tranmit power values.
Hope this helps..
Regards
Manish..
On
components CC2420PacketC;
App.CC2420Packet -> CC2420PacketC;
in your configuration file
uses interface CC2420Packet;
On Mon, Nov 15, 2010 at 11:58 AM, SHIVASANKAR GANESAN <[email protected]>
wrote:
Hi
How to control transmission power for the preamble(in MICAZ mote).
With regards Sivasankar
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help