Hi, I updated all the CC2420* files and dumped in /opt/tinyos-2.x/tos/chips/cc2420/ but its not working. What should I do in this case ? I am getting same kind of errors like "interface has no > command or event named"...
Please help. Thanks, Vijayant Bhatnagar On Dec 2, 2007 4:51 AM, Urs Hunkeler <[EMAIL PROTECTED]> wrote: > Hi again, > > It looks like they changed the directory structure in the newest version > on CVS (I haven't updated in a while). It looks as if the make tools are > not including the interfaces directory. Without actually having tried > the new version, some of the error messages below (the one where it says > that the interface definition is not correct) seem even to suggest that > the language format might have changed. > > Is this a new install or an updated version? If updated, make sure you > update the whole tinyos tree (for instance: cd /opt/tinyos-2.x; cvs > update). You also might need to update the tinyos tools. If you have > tinyos-1.x installed in parallel, make sure you're not using the old > tools. If this is a completely new install or updating didn't help, you > could try to install an older version. You might find older tinyos trees > in some archive format somewhere (probably the tinyos home page). > There is also a command line option (which I don't remember) where you > can say that you want to have the version from a specific day. > > Good luck, > Urs > > > Vijayant Bhatnagar wrote: > > 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 Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help