Overview

This project shows how radio signal strength indicator (RSSI) can be used for tracking. In this application the two JCreates in the PERK kit are used to find each other. The application will start by starting two threads, a sender thread and a receiver thread. The sender thread will periodically send out a beacon message and the receiver thread will receive the beacon messages from the other mote, compute the RSSI value and then display the reading in human readable from on the leds.

Hardware

All you need is two JCreates.

Software

The code for this project is really simple. The main part of this code is this:

CC2420Radio.Receiver recv_meta =
   receiver.getMetadata(CC2420Radio.Receiver.class);

rssiMsg.rssi = (short)((recv_meta.rssi + 64) & 255);

Download the code a give it a try!



#Overview#

This project shows how radio signal strength indicator (RSSI) can be used for tracking. In this application the two JCreates in the PERK kit are used to find each other. The application will start by starting two threads, a sender thread and a receiver thread. The sender thread will periodically send out a beacon message and the receiver thread will receive the beacon messages from the other mote, compute the RSSI value and then display the reading in human readable from on the leds.

#Hardware#
All you need is two JCreates.

#Software#
The code for this project is really simple. The main part of this code is this:
<code>
CC2420Radio.Receiver recv_meta =
receiver.getMetadata(CC2420Radio.Receiver.class);

rssiMsg.rssi = (short)((recv_meta.rssi + 64) & 255);
</code>

@[Download the code a give it a try!][[BeaconMote.java]]