1. you've got what u need below. check for *RSSI *and *RssiResource*.
http://tinyos.cvs.sourceforge.net/viewvc/tinyos/tinyos-2.x/tos/chips/cc2420/control/CC2420ControlP.nc?revision=1.8&content-type=text%2Fplain

2. create ur own configuration file in ur program folder:

eg.

generic configuration ReadRSSIC()
{
  provides interface Read<uint16_t> as XX;
}
implementation
{
  components new CC2420ControlC() as YY;
  XX = YY.ReadRssi;
}

3. use the *Read* interface in ur module where u wanna use RSSI values.
4. wire the 2 and 3 in ur main configuration file.

that should do it, or with other small work-arounds..
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to