I think a reply from Dimas may be useful to you.
==================================================================================================
Answers below:

On Fri, Mar 14, 2008 at 3:04 PM, hamsa jega <[EMAIL PROTECTED]> wrote:

> I have done the following in order to obtain the rssi value for an
> incoming message in my Basestation.
> I wired the interface cc1000RssiP.Rssi[unique(UQ_CC1000_RSSI)].


If you want to read the rssi from incoming packets you don't need that
interface. CC1000RssiP is to read the RSSI noise floor. In fact, if you are
measuring the noise floor and a packet arrives, it is canceled and
restarted, as described in the documentation
http://www.tinyos.net/tinyos-2.x/doc/nesdoc/mica2/index.html .


> After the call to Rssix.read() I guess the control transfers to readDone
> so when it returns the global variable should hold the result and this I
> assign to my packet to a value called strength and call send function to
> send it via the serial port and read it using Listen.
> I constantly get the same value as reading despite moving the motes
> around. Is my approach wrong?


> Can you guide me to start off in the right direction?


Sure! Each incoming message's RSSI is stored in the message_t metadata
field. You should use a code like this:

  //Put this inside your module
  uint16_t getRssi(message_t *msg){
    cc1000_metadata_t *md =(cc1000_metadata_t*) msg->metadata;
    return md->strength_or_preamble;
  }

Hope it helps.
 ~Dimas~
===================================================================================================

On 20/03/2008, Nilesh Mishra <[EMAIL PROTECTED]> wrote:
>
> I think you can start using micaz directly. Please follow the instruction
> for installing tinyos 2.x from
> http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html
> then check out the RSSIsample code from the cvs (or else let me know and I
> will send you a tar). From here on you can put this in the app directory and
> use it. For tutorial on tinyos 2.x please visit the site
> http://docs.tinyos.net/index.php/TinyOS_Tutorials
>
> Nilesh
>
> On Thu, Mar 20, 2008 at 3:00 AM, shirley halder <[EMAIL PROTECTED]>
> wrote:
>
> >
> > Dear Sir,
> >
> > May be I can receive CC2430 hybus mote which use tinyos-2.x? How about
> > this mote? And from where i can start my work? Really I don't have any idea
> > about tinyos. Thanks.
> >
> > Joana
> >
> > On 3/20/08, Nilesh Mishra <[EMAIL PROTECTED]> wrote:
> > >
> > > Please direct your mails to the help list :). My suggestion would be
> > > to use tinyos-2.x if you are still a beginner as it has more support
> > > as well as some available code to get RSSI from CC2420 radio. Please look 
> > > at
> > >
> > > http://tinyos.cvs.sourceforge.net/tinyos/tinyos-2.x-contrib/stanford-sing/apps/RssiSample/
> > > Thanks,
> > > Nilesh
> > >
> > > ---------- Forwarded message ----------
> > > From: shirley halder <[EMAIL PROTECTED]>
> > > Date: Thu, Mar 20, 2008 at 2:20 AM
> > > Subject: Re: [Tinyos-help] Hello
> > > To: Nilesh Mishra <[EMAIL PROTECTED]>
> > >
> > >
> > > Thanks a lot for your reply. My mote specification is
> > >
> > > micaz
> > > jdk1.4.1_02
> > > tinyos-1.x
> > > nesc-1.1-1w
> > > gcc-3.2-3
> > > cygwin-1.3.22-2
> > >
> > > thanks again. And please help me.
> > >
> > >   On 3/20/08, Nilesh Mishra <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Can you please specify the motes (telos, mica) you have so that
> > > > people can point accordingly?
> > > > Thanks,
> > > > Nilesh
> > > >
> > > >  On Wed, Mar 19, 2008 at 8:44 PM, shirley halder <
> > > > [EMAIL PROTECTED]> wrote:
> > > >
> > > > >  Hello All,
> > > > >
> > > > > I'm a beginner of Tinyos-1.x. To complete my thesis paper I need
> > > > > RSSI value from mote. I have to get this result by the end of this 
> > > > > month. So
> > > > > can anyone please guide me what should I do? I need some guide line. 
> > > > > So
> > > > > please help me. Thanks.
> > > > >
> > > > > Joana
> > > > >
> > > > > _______________________________________________
> > > > > Tinyos-help mailing list
> > > > > [email protected]
> > > > >
> > > > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Regards
> > > > Nilesh
> > > >
> > > > Nilesh Mishra
> > > > Embedded Networks Laboratory
> > > > University of Southern California,
> > > > 3710 S. McClintock Avenue, Ronald Tutor Hall (RTH) 418
> > > > Los Angeles, CA 90089
> > > > mail: [EMAIL PROTECTED]
> > > > [EMAIL PROTECTED]
> > > > [EMAIL PROTECTED]
> > > > ph: (213) 821-5627 (lab)
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Regards
> > > Nilesh
> > >
> > > Nilesh Mishra
> > > Embedded Networks Laboratory
> > > University of Southern California,
> > > 3710 S. McClintock Avenue, Ronald Tutor Hall (RTH) 418
> > > Los Angeles, CA 90089
> > > mail: [EMAIL PROTECTED]
> > > [EMAIL PROTECTED]
> > > [EMAIL PROTECTED]
> > > ph: (213) 821-5627 (lab)
> > >
> > > _______________________________________________
> > > Tinyos-help mailing list
> > > [email protected]
> > >
> > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> > >
> >
> >
>
>
> --
> Regards
> Nilesh
>
> Nilesh Mishra
> Embedded Networks Laboratory
> University of Southern California,
> 3710 S. McClintock Avenue, Ronald Tutor Hall (RTH) 418
> Los Angeles, CA 90089
> mail: [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> ph: (213) 821-5627 (lab)
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to