You must read the RSSI on received packets, you should be using instead:

 event message_t* Receive.receive(message_t* bufPtr,  void* payload,
uint8_t len) {
    printfUART("RSSI [%d] LQI [%d]\n", (call
CC2420Packet.getRssi(bufPtr)-45), call CC2420Packet.getLqi(bufPtr));

You can wire CC2420Packet in your configuration file as:

  components CC2420PacketC;
  App.CC2420Packet -> CC2420PacketC;

Then in your module:
  uses interface CC2420Packet;

Cheers,

--Antonio


On Tue, Feb 25, 2014 at 10:30 AM, tassos21 __ <[email protected]> wrote:

>   Hi,
> I am trying to transform HyungJune Lee code (
> http://sing.stanford.edu/abbado/RssiSampling.tar) in order to print RSSI
> readings from receiving packets instead of noise. I have included Receive
> and CC2420Packet interfaces but I can't bypass noise readings. Any ideas?
> King Regards,
> Tassos.
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
--
Antonio Liñán Colina
R+D Engineer
@: [email protected]
@: [email protected]
------------------------------
Advancare
Ph.: +34 935 511 403
http://www.advancare.com
http://www.zolertia.com
http://zolertia.sourceforge.net
http://webshop.zolertia.com
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to