Talk:CC2420 Security Tutorial
Hello, I tried to execute the security test /opt/tinyos-2.1.1-/apps/tests/cc2420/TestSecurity/RadioCountToLeds when i execute make micaz sim, i got the following error: mkdir -p simbuild/micaz
placing object files in simbuild/micaz writing XML schema to app.xml compiling RadioCountToLedsAppC to object file sim.o
ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim -fnesc-nido-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\) -fnesc-gcc=gcc -Wall -Wshadow -Wnesc-all -target=micaz -fnesc-cfile=simbuild/micaz/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000 -DCC2420_HW_ACKNOWLEDGEMENTS -DCC2420_HW_SECURITY -DPACKET_LINK -DTOSH_DATA_LENGTH=115 -DIDENT_APPNAME=\"RadioCountToLed\" -DIDENT_USERNAME=\"fatma\" -DIDENT_HOSTNAME=\"ubuntu\" -DIDENT_USERHASH=0x8f38acaeL -DIDENT_TIMESTAMP=0x4fd26ba5L -DIDENT_UIDHASH=0x281e83d0L -Wno-nesc-data-race RadioCountToLedsAppC.nc -fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml In file included from RadioCountToLedsAppC.nc:45: In component `RadioCountToLedsC': RadioCountToLedsC.nc:53: interface CC2420SecurityMode not found RadioCountToLedsC.nc:54: interface CC2420Keys not found In file included from RadioCountToLedsAppC.nc:45: RadioCountToLedsC.nc: In function `AMControl.startDone': RadioCountToLedsC.nc:76: interface has no command or event named `setKey' RadioCountToLedsC.nc: At top level: RadioCountToLedsC.nc:89: `setKeyDone' is not in interface `CC2420Keys' RadioCountToLedsC.nc: In function `MilliTimer.fired': RadioCountToLedsC.nc:111: interface has no command or event named `setCcm' In component `RadioCountToLedsAppC': RadioCountToLedsAppC.nc: At top level: RadioCountToLedsAppC.nc:46: component SecAMSenderC not found RadioCountToLedsAppC.nc:46: component `SecAMSenderC' is not generic RadioCountToLedsAppC.nc:49: component CC2420KeysC not found In file included from /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:37,
from RadioCountToLedsAppC.nc:62:
In C file: /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420.h:132: syntax error before `nx_bool' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420.h:132: warning: no semicolon at end of struct or union /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420.h:133: syntax error before `ack' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420.h:134: syntax error before `timesync' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420.h:143: syntax error before `}' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420.h:143: warning: type defaults to `int' in declaration of `cc2420_metadata_t' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420.h:143: warning: data definition has no type or storage class In file included from RadioCountToLedsAppC.nc:62: In component `CC2420ActiveMessageC': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:53: interface CC2420Packet not found In file included from RadioCountToLedsAppC.nc:62: /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:56: interface RadioBackoff not found In file included from /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:67,
from RadioCountToLedsAppC.nc:62:
In component `CC2420RadioC': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:62: component CC2420CsmaC not found /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:63: component UniqueSendC not found /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:64: component UniqueReceiveC not found /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:65: component CC2420TinyosNetworkC not found /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:66: component CC2420PacketC not found /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:67: component CC2420ControlC not found /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:72: component DummyLplC not found /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:76: component PacketLinkC not found /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:81: no match /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:82: no match /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:83: no match /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:84: no match /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:85: no match /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:87: no match /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:88: cannot find `Send' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:89: cannot find `Receive' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:90: cannot find `ActiveSend' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:91: cannot find `ActiveReceive' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:94: no match /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:95: cannot find `SubControl' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:98: cannot find `SubSend' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:99: cannot find `SubSend' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:100: cannot find `Send' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:101: cannot find `SubSend' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:104: cannot find `SubReceive' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:105: cannot find `Receive' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:106: cannot find `SubReceive' In file included from /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:68,
from RadioCountToLedsAppC.nc:62:
In component `CC2420ActiveMessageP': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:52: interface CC2420PacketBody not found /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:53: interface CC2420Config not found In file included from /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:68,
from RadioCountToLedsAppC.nc:62:
/opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function `RadioResource.granted': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:67: interface has no command or event named `getHeader' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function `AMSend.send': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:81: interface has no command or event named `getHeader' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:89: interface has no command or event named `getPanAddr' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function `AMPacket.destination': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:127: interface has no command or event named `getHeader' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function `AMPacket.source': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:132: interface has no command or event named `getHeader' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function `AMPacket.setDestination': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:137: interface has no command or event named `getHeader' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function `AMPacket.setSource': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:142: interface has no command or event named `getHeader' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function `AMPacket.type': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:152: interface has no command or event named `getHeader' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function `AMPacket.setType': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:157: interface has no command or event named `getHeader' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function `AMPacket.group': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:162: interface has no command or event named `getHeader' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function `AMPacket.setGroup': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:167: interface has no command or event named `getHeader' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function `AMPacket.localGroup': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:171: interface has no command or event named `getPanAddr' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function `Packet.clear': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:177: interface has no command or event named `getHeader' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:178: interface has no command or event named `getMetadata' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function `Packet.payloadLength': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:182: interface has no command or event named `getHeader' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function `Packet.setPayloadLength': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:186: interface has no command or event named `getHeader' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level: /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:222: `syncDone' is not in interface `CC2420Config' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:228: `requestInitialBackoff' is not in interface `SubBackoff' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function `SubBackoff.requestInitialBackoff': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:229: interface has no command or event named `requestInitialBackoff' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:229: subscripted value is neither array nor pointer /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level: /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:233: `requestCongestionBackoff' is not in interface `SubBackoff' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function `SubBackoff.requestCongestionBackoff': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:234: interface has no command or event named `requestCongestionBackoff' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:234: subscripted value is neither array nor pointer /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level: /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:237: `requestCca' is not in interface `SubBackoff' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function `SubBackoff.requestCca': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:239: interface has no command or event named `requestCca' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:239: subscripted value is neither array nor pointer /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level: /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:243: `setInitialBackoff' is not in interface `RadioBackoff' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function `RadioBackoff.setInitialBackoff': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:244: interface has no command or event named `setInitialBackoff' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level: /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:251: `setCongestionBackoff' is not in interface `RadioBackoff' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function `RadioBackoff.setCongestionBackoff': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:252: interface has no command or event named `setCongestionBackoff' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level: /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:261: `setCca' is not in interface `RadioBackoff' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: In function `RadioBackoff.setCca': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:262: interface has no command or event named `setCca' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc: At top level: /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:281: `requestInitialBackoff' is not in interface `RadioBackoff' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:285: `requestCongestionBackoff' is not in interface `RadioBackoff' /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageP.nc:289: `requestCca' is not in interface `RadioBackoff' In component `CC2420ActiveMessageC': /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:93: no match /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:94: no match /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:95: no match /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:96: no match /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:98: no match In component `RadioCountToLedsAppC': RadioCountToLedsAppC.nc:54: no match RadioCountToLedsAppC.nc:58: no match RadioCountToLedsAppC.nc:59: no match RadioCountToLedsAppC.nc:60: no match make: *** [sim-exe] Error 1
PLEASE HELP
THANKS