Any help is appreciated :)

Regards,
VB

---------- Forwarded message ----------
From: Vijayant Bhatnagar <[EMAIL PROTECTED]>
Date: Dec 2, 2007 2:22 AM
Subject: Re: [Tinyos-help] error while incorporating interface CC2420Packet;
To: Urs Hunkeler <[EMAIL PROTECTED]>


Hi Urs,
I copied the file from /opt/tinyos-2.x/tos/chips/cc2420/interfaces to
/opt/tinyos-2.x/tos/chips/cc2420/.
Then I got this error:
In component `RadioCountToLedsAppC':
RadioCountToLedsAppC.nc:54: component CC2420PacketC not found
RadioCountToLedsAppC.nc:66: no match


To fix this, I copied CC2420PacketC to /opt/tinyos-2.x/tos/chips/cc2420/.

But now I am getting these errors :
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc:46: interface
CC2420PacketBody not found
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc: In function
`Acks.requestAck':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc:56: interface has no
command or event named `getHeader'
/opt/tinyos-2.x /tos/chips/cc2420/CC2420PacketC.nc: In function
`Acks.noAck':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc:61: interface has no
command or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc: In function
`Acks.wasAcked':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc:66: interface has no
command or event named `getMetadata'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc: In function
`CC2420Packet.setPower':
/opt/tinyos- 2.x/tos/chips/cc2420/CC2420PacketC.nc:73: interface has no
command or event named `getMetadata'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc: In function
`CC2420Packet.getPower':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc:77: interface has no
command or event named `getMetadata'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc: In function
`CC2420Packet.getRssi':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc:81: interface has no
command or event named `getMetadata'
/opt/tinyos- 2.x/tos/chips/cc2420/CC2420PacketC.nc: In function
`CC2420Packet.getLqi':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc:85: interface has no
command or event named `getMetadata'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc: At top level:
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc:89: syntax error before
`*'


Realizing that it is not able to get CC2420PacketBody, I copy pasted all the
interface files in the
/opt/tinyos-2.x/tos/chips/cc2420/ folder.

But now, I am getting these errors :
In interface `CC2420PacketBody':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketBody.nc:42: only commands and
events can be defined in interfaces
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketBody.nc:42: warning:
return-type defaults to `int'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketBody.nc:42: syntax error before
`*'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketBody.nc:47: only commands and
events can be defined in interfaces
/opt/tinyos-2.x /tos/chips/cc2420/CC2420PacketBody.nc:47: warning:
return-type defaults to `int'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketBody.nc:47: syntax error before
`*'
In file included from RadioCountToLedsAppC.nc :54:
In component `CC2420PacketC':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc: In function
`Acks.requestAck':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc:56: interface has no
command or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc: In function `Acks.noAck':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc:61: interface has no
command or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc: In function
`Acks.wasAcked':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc:66: interface has no
command or event named `getMetadata'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc: In function
`CC2420Packet.setPower':
/opt/tinyos- 2.x/tos/chips/cc2420/CC2420PacketC.nc:73: interface has no
command or event named `getMetadata'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc: In function
`CC2420Packet.getPower':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc:77: interface has no
command or event named `getMetadata'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc: In function
`CC2420Packet.getRssi':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc:81: interface has no
command or event named `getMetadata'
/opt/tinyos- 2.x/tos/chips/cc2420/CC2420PacketC.nc: In function
`CC2420Packet.getLqi':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc:85: interface has no
command or event named `getMetadata'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc: At top level:
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc:89: syntax error before
`*'
CC2420PacketC: `CC2420PacketBody.cc2420_metadata_t' not implemented
CC2420PacketC: `CC2420PacketBody.cc2420_header_t' not implemented


Can you please help me what is the problem ? WE are really stuck.

Thanks,
Vijayant Bhatnagar.



On Dec 2, 2007 2:03 AM, Urs Hunkeler < [EMAIL PROTECTED]> wrote:

> Hi,
>
> Still getting the error? The interface definition should be in:
> /opt/tinyos-2.x/tos/chips/cc2420/CC2420Packet.nc (at least that's
> where it is on my system). If that file doesn't exist, try getting
> a newer version of TinyOS (eg. updating cvs).
>
> Cheers,
> Urs
>
> Vijayant Bhatnagar wrote:
> > Hi,
> > This is the piece of code written by me. I am basically modifying
> > RadiocountToleds tutorial file.
> >
> > If comment out code for CC2420; everything works absolutely fine.
> >
> > Any help appreciated,
> >
> >
> > Thanks,
> > Vijayant Bhatnagar.
> > Rutgers.
>  >
> > [..]
> >
> > This is the error that I am getting.
> >
> >
> > In file included from RadioCountToLedsAppC.nc:47:
> > In component `RadioCountToLedsC':
> > RadioCountToLedsC.nc:62: interface CC2420Packet not found
> > In file included from /opt/tinyos- 2.x
> > /tos/chips/cc2420/CC2420ActiveMessageC.nc:37,
> >                  from RadioCountToLedsAppC.nc:53:
>  > [..]
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to