Hello to all
I have to simulate an application which is written in tinyos1.X.
When I compiled it in TinyOS2.x, I have found many errors. My questions are:
1) How can I found the package TinySec, because I don't found it in my
TinyOS2.x,
2) What are the major changes that I have to made to change a code written
in TinyOS1.x to TinyOS2.x.
3) I have found many errors:
In component `sim':
sim.nc:5: *component Main not found*
In file included from simM.nc:8,
from sim.nc:5:
In interface `Sender':
Sender.nc:6: *only commands and events can be defined in interfaces*
Sender.nc:6: warning: return-type defaults to `int'
Sender.nc:6: syntax error before `generateCDM'
Sender.nc:8: only commands and events can be defined in interfaces
Sender.nc:8: warning: return-type defaults to `int'
Sender.nc:8: *redefinition of `result_t'*
Sender.nc:8: syntax error before `authenticateData'
In file included from simM.nc:9,
from sim.nc:5:
In interface `Receiver':
Receiver.nc:8: only commands and events can be defined in interfaces
Receiver.nc:8: warning: return-type defaults to `int'
Receiver.nc:8: syntax error before `authenticDataReady'
In file included from simM.nc:10,
from sim.nc:5:
In interface `Attacker':
Attacker.nc:5: only commands and events can be defined in interfaces
Attacker.nc:5: warning: return-type defaults to `int'
Attacker.nc:5: syntax error before `init'
In file included from sim.nc:5:
In component `simM':
simM.nc:12: *too few arguments to interface `Timer'*
simM.nc:14: *interface BareSendMsg not found*
simM.nc:15: *interface ReceiveMsg not found*
simM.nc:35: syntax error before `buffer'
simM.nc:36: syntax error before `ourBuffer'
simM.nc:39: syntax error before `bs_send'
simM.nc:46: syntax error before `.'
simM.nc:46: warning: return-type defaults to `int'
simM.nc: In function `memcpy':
simM.nc:60: interface has no command or event named `authenticateData'
simM.nc:60: `tos_state' undeclared (first use in this function)
simM.nc:60: (Each undeclared identifier is reported only once
simM.nc:60: for each function it appears in.)
simM.nc:61: *request for member `data' in something not a structure or union
*
simM.nc:61: subscripted value is neither array nor pointer
simM.nc:62: request for member `data' in something not a structure or union
simM.nc:63: request for member `addr' in something not a structure or union
simM.nc:64: request for member `length' in something not a structure or
union
simM.nc:65: `DBG_PACKET' undeclared (first use in this function)
simM.nc:68: interface has no command or event named `send'
simM.nc:68: `ourBuffer' undeclared (first use in this function)
simM.nc: At top level:
simM.nc:71: syntax error before `return'
simM: `*StdControl.start' not implemented*
simM: *`StdControl.stop' not implemented*
simM: `*Timer.fired' not implemented*
In file included from MTESLASenderM.nc:15,
from sim.nc:6:
In interface `Primitive':
Primitive.nc:3: only commands and events can be defined in interfaces
Primitive.nc:3: warning: return-type defaults to `int'
Primitive.nc:3: syntax error before `MAC'
Primitive.nc:4: only commands and events can be defined in interfaces
Primitive.nc:4: warning: return-type defaults to `int'
Primitive.nc:4: redefinition of `result_t'
Primitive.nc:4: syntax error before `verifyMAC'
Primitive.nc:6: only commands and events can be defined in interfaces
Primitive.nc:6: warning: return-type defaults to `int'
Primitive.nc:6: redefinition of `result_t'
Primitive.nc:6: syntax error before `PRF'
Primitive.nc:7: only commands and events can be defined in interfaces
Primitive.nc:7: warning: return-type defaults to `int'
Primitive.nc:7: redefinition of `result_t'
Primitive.nc:7: syntax error before `PRG'
Primitive.nc:9: only commands and events can be defined in interfaces
Primitive.nc:9: warning: return-type defaults to `int'
Primitive.nc:9: redefinition of `result_t'
Primitive.nc:9: syntax error before `generate_key_from'
In component `MTESLASenderM':
MTESLASenderM.nc:46: syntax error before `get_key'
MTESLASenderM: `Sender.result_t' not implemented
MTESLASenderM: `Sender.result_t' not implemented
MTESLASenderM: `Sender.generateConf' not implemented
In file included from sim.nc:6:
In component `MTESLAReceiverM':
MTESLAReceiverM.nc:89: syntax error before `new'
MTESLAReceiverM.nc: In function `verify_key':
MTESLAReceiverM.nc:106: interface has no command or event named
`generate_key_fr
om'
MTESLAReceiverM.nc:106: *syntax error before `new'*
MTESLAReceiverM.nc:113: syntax error before `new'
MTESLAReceiverM.nc: At top level:
MTESLAReceiverM.nc:127: syntax error before `get_key'
MTESLAReceiverM.nc:131: old-style parameter lists not supported
MTESLAReceiverM.nc:131: warning: return-type defaults to `int'
MTESLAReceiverM.nc:131: conflicting types for `refresh_lc'
MTESLAReceiverM.nc:47: previous declaration of `refresh_lc'
MTESLAReceiverM.nc:131: warning: data definition has no type or storage
class
MTESLAReceiverM.nc:135: syntax error before `if'
MTESLAReceiverM: `Receiver.ProcessData' not implemented
MTESLAReceiverM: `Receiver.result_t' not implemented
MTESLAReceiverM: `Receiver.ProcessCDM' not implemented
In file included from sim.nc:6:
In component `MTESLAAttackerM':
MTESLAAttackerM.nc:18: syntax error before `Attacker'
MTESLAAttackerM: `Attacker.ListenCDM' not implemented
MTESLAAttackerM: `Attacker.InsertData' not implemented
MTESLAAttackerM: `Attacker.result_t' not implemented
MTESLAAttackerM: `Attacker.ListenData' not implemented
MTESLAAttackerM: `Attacker.InsertCDM' not implemented
In file included from sim.nc:7:
In component `Simple_BufferM':
Simple_BufferM.nc: In function `Buffer.nextData':
Simple_BufferM.nc:94: `DBG_PACKET' undeclared (first use in this function)
Simple_BufferM.nc: In function `Buffer.bufferData':
Simple_BufferM.nc:137: `DBG_PACKET' undeclared (first use in this function)
Simple_BufferM.nc: In function `Buffer.bufferCDM':
Simple_BufferM.nc:199: `DBG_PACKET' undeclared (first use in this function)
In file included from SecPrimitiveM.nc:10,
from sim.nc:7:
In interface `MAC':
MAC.nc: At top level:
MAC.nc:46: only commands and events can be defined in interfaces
MAC.nc:46: warning: return-type defaults to `int'
MAC.nc:46: syntax error before `init'
MAC.nc:59: only commands and events can be defined in interfaces
MAC.nc:59: warning: return-type defaults to `int'
MAC.nc:59: redefinition of `result_t'
MAC.nc:59: syntax error before `initIncrementalMAC'
MAC.nc:75: only commands and events can be defined in interfaces
MAC.nc:75: warning: return-type defaults to `int'
MAC.nc:75: redefinition of `result_t'
MAC.nc:75: syntax error before `incrementalMAC'
MAC.nc:95: only commands and events can be defined in interfaces
MAC.nc:95: warning: return-type defaults to `int'
MAC.nc:95: redefinition of `result_t'
MAC.nc:95: syntax error before `getIncrementalMAC'
MAC.nc:113: only commands and events can be defined in interfaces
MAC.nc:113: warning: return-type defaults to `int'
MAC.nc:113: redefinition of `result_t'
MAC.nc:113: syntax error before `MAC'
In component `SecPrimitiveM':
SecPrimitiveM.nc:18: syntax error before `Primitive'
SecPrimitiveM: `Primitive.rand' not implemented
SecPrimitiveM: `Primitive.result_t' not implemented
SecPrimitiveM: `Primitive.result_t' not implemented
SecPrimitiveM: `Primitive.result_t' not implemented
SecPrimitiveM: `Primitive.result_t' not implemented
SecPrimitiveM: `Primitive.result_t' not implemented
In file included from CBCMAC.nc:36,
from sim.nc:8:
In interface `BlockCipher':
BlockCipher.nc:46: only commands and events can be defined in interfaces
BlockCipher.nc:46: warning: return-type defaults to `int'
BlockCipher.nc:46: syntax error before `init'
BlockCipher.nc:60: only commands and events can be defined in interfaces
BlockCipher.nc:60: warning: return-type defaults to `int'
BlockCipher.nc:60: redefinition of `result_t'
BlockCipher.nc:60: syntax error before `encrypt'
BlockCipher.nc:76: only commands and events can be defined in interfaces
BlockCipher.nc:76: warning: return-type defaults to `int'
BlockCipher.nc:76: redefinition of `result_t'
BlockCipher.nc:76: syntax error before `decrypt'
In file included from sim.nc:8:
In component `CBCMAC':
CBCMAC.nc:71: syntax error before `MAC'
CBCMAC: `MAC.result_t' not implemented
CBCMAC: `MAC.result_t' not implemented
CBCMAC: `MAC.result_t' not implemented
CBCMAC: `MAC.result_t' not implemented
CBCMAC: `MAC.result_t' not implemented
In file included from sim.nc:8:
In component `RC5M':
RC5M.nc:78: syntax error before `setupKey'
RC5M.nc:100: syntax error before `BlockCipher'
RC5M: `BlockCipherInfo.getPreferredBlockSize' not implemented
RC5M: `BlockCipher.result_t' not implemented
RC5M: `BlockCipher.result_t' not implemented
RC5M: `BlockCipher.result_t' not implemented
In component `sim':
sim.nc:8: *component RandomLFSR not found*
sim.nc:8: *component TimerC not found*
sim.nc:9: *component RadioCRCPacket not found*
sim.nc:11: *cannot find `StdControl'*
sim.nc:16: no match
sim.nc:17: no match
sim.nc:18: no match
sim.nc:19: no match
sim.nc:20: *cannot find `Timer'*
make: *** [sim-exe] Error 1
I will be grateful for any help and suggestions!
Best Regards,
--
Wafa Ben Jaballah
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help