Yusnaidi, I see, so you actually want to see the power which the sender specified (value between 0 and 31), not the RSSI of the packet which was received.
This information is not transmitted with the basic CC2420 packet (see CC2420.h: it's under the metadata section which is described as not transmitted with the packet). Just the header + payload are sent, not the metadata. If you need access to this information at the receiver, then I guess the simplest solution is to duplicate it in the payload of the packet. Hope this answers your question. -Doug On Mon, Dec 13, 2010 at 10:32 AM, Yusnaidi Md Yusof <[email protected]>wrote: > Hi Doug, > > Many thanks for the help. However, I need to read the received power on > every received packet, thus I guess I have to choose getPower() rather than > getRssi(). Is it? > > I have set the transmission power for a given packet using > CC2420Packet.setPower(), thus to read the transmission power settings for > the received packet, I need to use CC2420Packet.getPower(), is it? Or, > getRssi() also gives a similar meanings? > > thanks > > Yusnaidi > > >> ------------------------------ >> >> Message: 2 >> Date: Fri, 10 Dec 2010 12:23:18 -0500 >> From: Doug Carlson <[email protected]> >> Subject: Re: [Tinyos-help] CTP: CC2420Packet.getPower() >> To: [email protected] >> Message-ID: >> <[email protected]> >> Content-Type: text/plain; charset="iso-8859-1" >> >> Yusnaidi, >> See the CC2420Packet documentation ( >> >> http://www.tinyos.net/tinyos-2.1.0/doc/nesdoc/telosb/ihtml/tos.chips.cc2420.interfaces.CC2420Packet.html >> ). >> >> You are looking for CC2420Packet.getRssi(). get/set power are for >> transmission power, getRssi will give you the received signal strength of >> a >> received packet (or, the RSSI of the acknowledgement for a sent packet). >> >> -Doug >> >> On Fri, Dec 10, 2010 at 11:10 AM, Yusnaidi Md Yusof <[email protected] >> >wrote: >> >> > Hi All, >> > >> > I am so stucked to read the power of the received packet. I am using CTP >> > protocol and sending the packet using Send.send(). >> > >> > I have tried with the AM communication (my other test that not using CTP >> > protocol), and in that test I send packets using AMSend.send(). I set >> > certain power using CC2420Packet.setPower() and able to read the correct >> > same power using CC2420Packet.getPower(). >> > >> > However, I always get power value as '31' using the >> CC2420Packet.getPower >> > while running the test in CTP Protocol. >> > >> > I guess, CTP not support using AMSend, but only support using 'Send' >> > interface. >> > >> > How can I get the power reading in CTP? >> > >> > Is it the nature that the 'Send.send()' used in CTP does not support >> > CC2420Packet.getPower()?? >> > >> > I do really need an advise here. Pleaseeeee... >> > >> > thanks >> > >> > Yusnaidi >> > >> > _______________________________________________ >> > Tinyos-help mailing list >> > [email protected] >> > >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >> > >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: >> https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20101210/ba6afe86/attachment-0001.htm >> >> ------------------------------ >> >> _______________________________________________ >> Tinyos-help mailing list >> [email protected] >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >> >> End of Tinyos-help Digest, Vol 92, Issue 41 >> ******************************************* >> > > >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
