Dear all:
I have a question... i use tmote sky mote and chip is cc2420..when i use
tinyos-1.x pong apps and get rssi value via TOSBase !
I see a set of number like :
04 01 08 35 FF FF 01 00 08 7D 0A 01 22 6C
04 01 08 40 FF FF 0A 00 08 7D 01 0A 21 6B
04 01 08 36 FF FF 01 00 08 7D 0A 01 22 6A
and my data struct like:
typedef struct PongMsg
{ nx_uint8_t src;
nx_uint8_t dest;
nx_uint8_t dest_rssi;
nx_uint8_t dest_lqi;
} PongMsg_t;
my PongM.nc for ReceiveMsg.receive:
event TOS_MsgPtr ReceiveMsg.receive( TOS_MsgPtr msg )
{
PongMsg_t* _pongmsg= (PongMsg_t*)msg->data;
call Leds.yellowToggle();
if( _pongmsg->src == 1){
pongmsg->dest = _pongmsg->src;
pongmsg->dest_rssi = msg->strength;
pongmsg->dest_lqi = msg->lqi;
pongmsg->src = 10;
call SendMsg.send(1, sizeof(PongMsg_t), p_msg);
}
How can i reading the rssi value?
if i see the value is 0x22 ,it mean the rssi value is -34dbm??
or P=RSSI _VAL +RSSI _OFFSE [dBm] ,cc2420 RSSI _OFFSE = - 45 so 0x22 => P= -
34 -45 = -79dbm?? which one is right??
Finally i training the rssi value form 0cm to 100cm ;Begin value is 0x22 down
to 0x00 and jump to 0xFx ;
what is the rssi value range? why i do not see 0xAx~0xEx value??
Best regards!!
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help