Tony,

I think this problem arises from the two different definitions of
TOS_Msg (which I think you're using here).  For example:

in /opt/tinyos-1.x/tos:
find . | grep AM.h
./platform/micaz/AM.h
./platform/telcos/AM.h
./types/AM.h

if you grep each of these files for lqi, you'll only find it in the
first, while the last default declaration of TOS_Msg doesn't
contain it.  I think this is because the CC2420 (which the
micaz uses, I can't speak for telcos) uses an 8 bit RSSI and
an 8 bit LQI on return of packets.  I think you can make pong
for the telco, right?  I don't think it was intended for simulation,
you might as well just run it on the motes [I think make pc includes
the default AM.h file, not the ones containing lqi, therefore you
wouldn't be able to get the LQI anyway (maybe)]

-Sam Pierson

> Message: 5
> Date: Thu, 26 Jan 2006 17:13:00 +0700
> From: Chalermphol Thammapalerd <[EMAIL PROTECTED]>
> Subject: Re: [Tinyos-help] Pong application
> To: L Tony <[EMAIL PROTECTED]>
> Cc: [email protected]
> Message-ID:
>         <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="gb2312"
>
> Hi Tony,
>
> Install the Pong application into 2 motes, with different id.
> Start the SerialForwarder, then
> compile and use the java tool in the same directory, the usage is "java
> PingPong".
>
> However, I've never tried your latter question.
> Hope someone can help you out.
>
> Good Luck,
> Chalermphol
>
>
> On 1/25/06, L Tony <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I have some questions about Pong application on tmote sky. First, how to
> > read RSSI and LQI value from base tmote? Second, I want to do some
> > simulation on this application, but when I do "make pc", there is an error
> > in PongM.nc that " in ReceiveMsg.receive, structure has no number named
> > 'lqi'." Is there any error in the source code?
> >
> > If anyone who used this application, pls give me some more information.
> > Thanks in advance.
> >
> > Best regards,
> > Tony
> >
> > _________________________________________________________________
> > Ãâ·ÑÏÂÔØ MSN Explorer:   http://explorer.msn.com/lccn
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

--
Sam Pierson

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

Reply via email to