hi ,
     I am new to tiny OS and for my master thesis I need to find the signal 
strength of sending mote.I am using micaz motes.I am using 3 motes.Mote 1 will 
send to mote 2 and mote 2 will exrtact  the rssi value from the packet send by 
mote1 and forward the rssi value,source id and sequence number to the base 
station which is mote 3.I am using xsniffer to get the values but I am not 
getting the correct output .when i read papers related to rssi it says the rssi 
values almost -50,-43 etc.But i am getting 10,15 when i keep both motes 
closer.the code written is as follows:
        
                               Module

            uint8_t rssi ;
            uint16_t sNo ;
            Packet *p1=(Packet*)rm->data;
            strgPkt *Smessage =(strgPkt *)strength.data;
            rssi = rm->strength;
            sNo = p1 -> seqNo ;
            Smessage->strPkt  = rssi ;
            Smessage->seqNo = sNo ;
            Smessage->src = TOS_LOCAL_ADDRESS;

           header                typedef struct Packet
                {
                  uint16_t seqNo ;
                 uint8_t src ;
                }Packet;


            typedef struct strgPkt
             {
              uint16_t seqNo ;
              uint16_t strPkt ;
              uint8_t src ;
            }strgPkt;

Is ther anything wrong in this code?can any one tell me how to interpret rssi 
data using XSniffer?ANy one got any idea ypical values of RSSI values of micaz 
motes?


Thanks in advance

Gayathri
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to