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.
Source Code : (...AppC.nC)
configuration RadioCountToLedsAppC {}
implementation {
components MainC, RadioCountToLedsC as App, LedsC;
components new AMSenderC(AM_RADIO_COUNT_MSG);
components new AMReceiverC(AM_RADIO_COUNT_MSG);
components new TimerMilliC();
components ActiveMessageC;
components CC2420ActiveMessageC;
App.Boot -> MainC.Boot;
App.Receive -> AMReceiverC;
App.AMSend -> AMSenderC;
App.AMControl -> ActiveMessageC;
App.Leds -> LedsC;
App.MilliTimer -> TimerMilliC;
App.Packet -> AMSenderC;
App.AMPacket -> AMReceiverC;
App.CC2420Packet -> CC2420ActiveMessageC;
}
Source Code (....C.nC)
module RadioCountToLedsC {
uses {
interface Leds;
interface Boot;
interface Receive;
interface AMSend;
interface Timer<TMilli> as MilliTimer;
interface SplitControl as AMControl;
interface Packet;
interface AMPacket;
interface CC2420Packet;
}
}
implementation {
....code continues
}
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:
In C file:
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:75: syntax error before `nx_bool'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:75: warning: no semicolon at end
of struct or union
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:76: syntax error before `ack'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:77: `time' redeclared as different
kind of symbol
/usr/include/time.h:187: previous declaration of `time'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:86: syntax error before `}'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:86: warning: type defaults to
`int' in declaration of `cc2420_metadata_t'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:86: warning: data definition has
no type or storage class
In file included from RadioCountToLedsAppC.nc:53:
In component `CC2420ActiveMessageC':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:50: interface
RadioBackoff not found
In file included from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420ActiveMessageC.nc:57,
from RadioCountToLedsAppC.nc:53:
In component `CC2420ActiveMessageP':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:49: interface
CC2420PacketBody not found
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:50: interface
CC2420Config not found
In file included from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420ActiveMessageC.nc:57,
from RadioCountToLedsAppC.nc:53:
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMSend.send':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:64: interface has
no command or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:67: interface has
no command or event named `getPanAddr'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.destination':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:108: interface has
no command or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.source':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:113: interface has
no command or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.setDestination':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:118: interface has
no command or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.setSource':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:123: interface has
no command or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.type':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:133: interface has
no command or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.setType':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:138: interface has
no command or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.group':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:143: interface has
no command or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.setGroup':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:148: interface has
no command or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`AMPacket.localGroup':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:152: interface has
no command or event named `getPanAddr'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`Packet.payloadLength':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:161: interface has
no command or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function
`Packet.setPayloadLength':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:165: interface has
no command or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level:
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:202: `syncDone' is
not in interface `CC2420Config'
In file included from RadioCountToLedsAppC.nc:53:
In component `CC2420ActiveMessageC':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:58: component
CC2420CsmaC not found
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:60: component
UniqueSendC not found
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:61: component
UniqueReceiveC not found
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:62: component
CC2420TinyosNetworkC not found
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:63: component
CC2420PacketC not found
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:64: component
CC2420ControlC not found
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:69: component
DummyLplC not found
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:75: component
PacketLinkDummyC not found
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:79: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:85: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:86: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:87: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:88: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:92: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:93: cannot find
`SubControl'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:96: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:97: cannot find
`SubSend'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:98: cannot find
`Send'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:99: cannot find
`Send'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:100: cannot find
`SubSend'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:103: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:104: cannot find
`Receive'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:105: cannot find
`Receive'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:106: cannot find
`SubReceive'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:108: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:109: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:110: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:111: no match
make: *** [sim-exe] Error 1
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help