dear sanskar,

1) which version of tinyos did u use?

2) i am attaching my code for recieved packet.

event TOS_MsgPtr ReceiveIntMsg.receive(TOS_MsgPtr m) {

 TOS_MsgPtr ret = m;
 IntMsgnew*message = (IntMsgnew *)m->data;
   atomic{receivednode=message->src;}
 //  call ADC.getData();
 //  call ADCBattery.getData();
       updateNeighbors(message->src,message->val,message->seqNo);
dbg(DBG_USR1,"strength %d",m->strength); --> this is how i am trying to access...
    //  printNeighbors();
    call Leds.redToggle();
    ret = m;

this is a simple code i have written for recieved packet..i dont know wat seems to be the problem. can u make out some mistake?

-rajat


On Mon, 5 Jun 2006, Sankar Gorthi wrote:

i was able to get it. what seems to be the problem?

all i did was access the message->strength value.

Sankar.

On Mon, 05 Jun 2006 23:33:52 -0500, Rajat Bansal <[EMAIL PROTECTED]> wrote:


I am trying to print RSSI strength in the recieved broadcast packet. First i was trying to access in tinyos-1.0 but i came to know that it is not possible in this version. I upload my tinyos to 1.15 but i am getting the value as zero only. Has ne one else came thru similar problem?

-rajat

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help





--
*************************************************************************
*  "Physics is like sex: sure, it may give some practical results, but  *
* that's not why we do it." - Richard Feynman. * * *
*                                                                       *
*************************************************************************
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to