If you hack TOSBaseM.nc, and add this in the RadioReceive.receive function:
pBuf->data[2]=pBuf->strength; pBuf->data[1]=0x99; You can then view the packets over the serial port using ListenRaw, and can easily identify the signal strength (note, this is for micaz, I think easier methods are available for mica2). Though I couldn't tell you how to interpret the data, you should be able to draw some conclusions from it. I was doing this last night (on the micaz) and had removed the FramerM file; so the micaz reframing wasn't taking place. I found it odd that the signal strength readings I had copied from the original packet into the data section were never present later in the unmodified frame... so this is of some concern to me too. On 1/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Message: 2 > Date: Tue, 31 Jan 2006 03:45:39 -0700 > From: Michael Schippling <[EMAIL PROTECTED]> > Subject: Re: [Tinyos-help] signal strength > To: kodati raghu <[EMAIL PROTECTED]> > Cc: [email protected] > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > When you are running on a Mote those 'extra fields' at the end of > TOS_Msg are filled in when you get a message, e.g., in the GenericComm > interface receive. So you just need to look at msg->strength on mica2's. > There was a recent discussion of the strength for micaz's that caused > some confustion, but my experience is that strength is still usable. > > However, on the host PC side, those extra fields are not supported. > The only way to get the received strength is to hack TOSBase to stick > it into the actual message someplace. There's certainly been enough > interest in that, maybe someone has code to share? > > MS > > > kodati raghu wrote: > > hi.. > > > > i am working on multihop network... i am trying to calculate signal > > strength by using surge_reliable example.. any body is working in this > > example?? by running serian farwarder i am getting some packets...but i > > cont identifying which byte is signal strength???and any body can sugest > > which application is for calculate signal strength in multihop network?? > > if any body working on signal strength with multihop ..please give some > > sugations... _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
