Hi Raphael, A lot of the errors are because of "Payloadlength". If you closely see the code, Romain uses Send interface to access this field but there was a big switchover in 4 main interfaces in September 2007 i.e AMSend, Packet, Send... interfaces and thereafter wherever you use Packet interface, you will have to add the length parameter.
The command in 'Packet' interface is: command void* getPayload(message_t* msg, uint8_t len); For example, in your first error , i.e. In component `MHPacketM': ../../tos/lib/net/multihop/MHPacketM.nc:38: conflicting types for `Packet.getPayload' /opt/tinyos-2.x/tos/interfaces/Packet.nc:115: previous declaration of `Packet.getPayload' It is complaining that there is a conflict for this parameter, if you have a current CVS of tinyos-2.x then probably you will have to change the MHPacketM-line 38 to: command void * Packet.getPayload(message_t *msg, uint8_t len), It may be possible that your MHPacketM-line 38 does not have the length parameter which the Packet interface has if you checked out the CVS after September 2007. Try doing this and it will reduce number of errors, then post again with the rest of the errors.. Cheers, Varun Jain R&D Embedded Design Engineer Spiderbox Pty. Ltd. P: +617 3318 9509 F: +617 3318 9595 M: +61401 091 248 E: [EMAIL PROTECTED] W: http://www.spiderbox.com.au -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, June 23, 2008 6:46 PM To: [email protected] Subject: [Tinyos-help] Help with Tymo and IRIS Motes Hello everyone, I am using MIB520 with IRIS Motes and everything is working fine for now. But I wanted to implement a multi-hop routing protocol in my network, and Tymo seemed to be the easiest one to use. After downloading the rep with SVN, I copied the content of tymo/src folder (apps, tos, Makefile) to my TinyOS folder (c:/cygwin/opt/tinyos-2.x). When I try to compile something (MHBaseStation for example), it prints lots of errors : -------------------------------------------------------------- [EMAIL PROTECTED] /opt/tinyos-2.x/apps/MHBaseStation $ make iris mkdir -p build/iris compiling TymaBaseAppC to a iris binary ncc -o build/iris/main.exe -Os -I../../tos/lib/net/dymo -I../../tos/lib/net/mul tihop -I../tymaluate/monitor/ -I../tymaluate/sense/ -Wall -Wshadow -Wnesc-all -t arget=iris -fnesc-cfile=build/iris/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x 22 -finline-limit=100000 -DIDENT_PROGRAM_NAME=\"TymaBaseAppC\" -DIDENT_USER_ID=\ "raphael\" -DIDENT_HOSTNAME=\"salina\" -DIDENT_USER_HASH=0x0b0e3da7L -DIDENT_UNI X_TIME=0x485f5808L -DIDENT_UID_HASH=0xbacafa79L -fnesc-dump=wiring -fnesc-dump=' interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, components)' -fn esc-dumpfile=build/iris/wiring-check.xml TymaBaseAppC.nc -lm In file included from MonitorC.nc:1, from TymaBaseAppC.nc:11: ../tymaluate/monitor/monitoring.h:5: syntax error before `<' ../tymaluate/monitor/monitoring.h:279: malformed floating constant In file included from TymaBaseAppC.nc:11: MonitorC.nc:8: syntax error before `->' MonitorC.nc:9: syntax error before `->' MonitorC.nc:10: syntax error before `->' MonitorC.nc:11: syntax error before `->' MonitorC.nc:12: syntax error before `->' MonitorC.nc:18: syntax error before `->' MonitorC.nc:19: syntax error before `->' MonitorC.nc:20: syntax error before `->' MonitorC.nc:22: syntax error before `->' In file included from ../../tos/lib/net/multihop/MHServiceC.nc:33, from ../../tos/lib/net/dymo/DymoNetworkC.nc:38, from BaseStationC.nc:72, from TymaBaseAppC.nc:13: In component `MHPacketM': ../../tos/lib/net/multihop/MHPacketM.nc:38: conflicting types for `Packet.getPay load' /opt/tinyos-2.x/tos/interfaces/Packet.nc:115: previous declaration of `Packet.ge tPayload' ../../tos/lib/net/multihop/MHPacketM.nc: In function `Packet.getPayload': ../../tos/lib/net/multihop/MHPacketM.nc:39: warning: passing argument 2 of `SubP acket.getPayload' makes integer from pointer without a cast ../../tos/lib/net/multihop/MHPacketM.nc: In function `Packet.payloadLength': ../../tos/lib/net/multihop/MHPacketM.nc:50: warning: passing argument 2 of `SubP acket.getPayload' makes integer from pointer without a cast ../../tos/lib/net/multihop/MHPacketM.nc: In function `Packet.setPayloadLength': ../../tos/lib/net/multihop/MHPacketM.nc:54: warning: passing argument 2 of `SubP acket.getPayload' makes integer from pointer without a cast ../../tos/lib/net/multihop/MHPacketM.nc: In function `MHPacket.destination': ../../tos/lib/net/multihop/MHPacketM.nc:68: warning: passing argument 2 of `SubP acket.getPayload' makes integer from pointer without a cast ../../tos/lib/net/multihop/MHPacketM.nc: In function `MHPacket.isForMe': ../../tos/lib/net/multihop/MHPacketM.nc:72: warning: passing argument 2 of `SubP acket.getPayload' makes integer from pointer without a cast ../../tos/lib/net/multihop/MHPacketM.nc:72: warning: passing argument 2 of `SubP acket.getPayload' makes integer from pointer without a cast ../../tos/lib/net/multihop/MHPacketM.nc: In function `MHPacket.setDestination': ../../tos/lib/net/multihop/MHPacketM.nc:76: warning: passing argument 2 of `SubP acket.getPayload' makes integer from pointer without a cast ../../tos/lib/net/multihop/MHPacketM.nc: In function `MHPacket.setSource': ../../tos/lib/net/multihop/MHPacketM.nc:80: warning: passing argument 2 of `SubP acket.getPayload' makes integer from pointer without a cast ../../tos/lib/net/multihop/MHPacketM.nc: In function `MHPacket.setType': ../../tos/lib/net/multihop/MHPacketM.nc:84: warning: passing argument 2 of `SubP acket.getPayload' makes integer from pointer without a cast ../../tos/lib/net/multihop/MHPacketM.nc: In function `MHPacket.source': ../../tos/lib/net/multihop/MHPacketM.nc:89: warning: passing argument 2 of `SubP acket.getPayload' makes integer from pointer without a cast ../../tos/lib/net/multihop/MHPacketM.nc: In function `MHPacket.type': ../../tos/lib/net/multihop/MHPacketM.nc:93: warning: passing argument 2 of `SubP acket.getPayload' makes integer from pointer without a cast ../../tos/lib/net/multihop/MHPacketM.nc: At top level: ../../tos/lib/net/multihop/MHPacketM.nc:28: `MHPacket.group' not implemented ../../tos/lib/net/multihop/MHPacketM.nc:28: `MHPacket.setGroup' not implemented ../../tos/lib/net/multihop/MHPacketM.nc:28: `MHPacket.localGroup' not implemente d In file included from ../../tos/lib/net/multihop/MHServiceC.nc:34, from ../../tos/lib/net/dymo/DymoNetworkC.nc:38, from BaseStationC.nc:72, from TymaBaseAppC.nc:13: In component `ForwardingEngineM': /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc: In function `AMSend.send': /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc:62: interface has no command or event named `payloadLength' /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc:73: interface has no command or event named `payloadLength' /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc: In function `SubReceive.receive ': /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc:96: warning: passing argument 2 of `PPacket.getPayload' makes integer from pointer without a cast /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc:102: warning: passing argument 2 of `PPacket.getPayload' makes integer from pointer without a cast /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc: In function `Timer.fired': /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc:157: warning: passing argument 2 of `PPacket.getPayload' makes integer from pointer without a cast /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc: At top level: /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc:200: conflicting types for `AMSe nd.getPayload' /opt/tinyos-2.x/tos/interfaces/AMSend.nc:124: previous declaration of `AMSend.ge tPayload' /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc: In function `AMSend.getPayload' : /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc:201: warning: passing argument 2 of `PPacket.getPayload' makes integer from pointer without a cast /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc: At top level: /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc:208: `getPayload' is not in inte rface `Receive' /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc: In function `Receive.getPayload ': /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc:209: warning: passing argument 2 of `PPacket.getPayload' makes integer from pointer without a cast /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc: At top level: /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc:212: `payloadLength' is not in i nterface `Receive' /opt/tinyos-2.x/tos/system/ForwardingEngineM.nc:225: conflicting types for `Inte rcept.forward' /opt/tinyos-2.x/tos/interfaces/Intercept.nc:31: previous declaration of `Interce pt.forward' ../../tos/lib/net/dymo/DymoServiceC.nc:6:28: StorageVolumes.h: No such file or d irectory In file included from BaseStationC.nc:72, from TymaBaseAppC.nc:13: In component `DymoNetworkC': ../../tos/lib/net/dymo/DymoNetworkC.nc:38: failed to preprocess ../../tos/lib/ne t/dymo/DymoServiceC.nc In file included from ../../tos/lib/net/dymo/DymoNetworkC.nc:40, from BaseStationC.nc:72, from TymaBaseAppC.nc:13: In component `LoopBackM': /opt/tinyos-2.x/tos/system/LoopBackM.nc: In function `AMSend.send': /opt/tinyos-2.x/tos/system/LoopBackM.nc:38: warning: passing argument 2 of `Pack et.getPayload' makes integer from pointer without a cast /opt/tinyos-2.x/tos/system/LoopBackM.nc: At top level: /opt/tinyos-2.x/tos/system/LoopBackM.nc:54: conflicting types for `AMSend.getPay load' /opt/tinyos-2.x/tos/interfaces/AMSend.nc:124: previous declaration of `AMSend.ge tPayload' /opt/tinyos-2.x/tos/system/LoopBackM.nc: In function `AMSend.getPayload': /opt/tinyos-2.x/tos/system/LoopBackM.nc:55: too few arguments to function /opt/tinyos-2.x/tos/system/LoopBackM.nc: At top level: /opt/tinyos-2.x/tos/system/LoopBackM.nc:67: `getPayload' is not in interface `Re ceive' /opt/tinyos-2.x/tos/system/LoopBackM.nc: In function `Receive.getPayload': /opt/tinyos-2.x/tos/system/LoopBackM.nc:68: interface has no command or event na med `getPayload' /opt/tinyos-2.x/tos/system/LoopBackM.nc:68: subscripted value is neither array n or pointer /opt/tinyos-2.x/tos/system/LoopBackM.nc: At top level: /opt/tinyos-2.x/tos/system/LoopBackM.nc:71: `payloadLength' is not in interface `Receive' /opt/tinyos-2.x/tos/system/LoopBackM.nc: In function `Receive.payloadLength': /opt/tinyos-2.x/tos/system/LoopBackM.nc:72: interface has no command or event na med `payloadLength' /opt/tinyos-2.x/tos/system/LoopBackM.nc:72: subscripted value is neither array n or pointer In component `DymoNetworkC': ../../tos/lib/net/dymo/DymoNetworkC.nc: At top level: ../../tos/lib/net/dymo/DymoNetworkC.nc:69: cannot find `AMPacket' ../../tos/lib/net/dymo/DymoNetworkC.nc:70: cannot find `Packet' ../../tos/lib/net/dymo/DymoNetworkC.nc:71: cannot find `AMSend' ../../tos/lib/net/dymo/DymoNetworkC.nc:72: cannot find `Receive' ../../tos/lib/net/dymo/DymoNetworkC.nc:79: cannot find `SplitControl' ../../tos/lib/net/dymo/DymoNetworkC.nc:83: cannot find `DymoMonitor' In file included from ConverterM.nc:1, from BaseStationC.nc:73, from TymaBaseAppC.nc:13: In C file: ../tymaluate/monitor/monitoring.h:5: syntax error before `<' ../tymaluate/monitor/monitoring.h:279: malformed floating constant In file included from ConverterM.nc:2, from BaseStationC.nc:73, from TymaBaseAppC.nc:13: ../tymaluate/sense/sensing.h:134: numeric constant contains digits beyond the ra dix ../tymaluate/sense/sensing.h:279: malformed floating constant In file included from BaseStationC.nc:73, from TymaBaseAppC.nc:13: In interface `Receive': ConverterM.nc:7: syntax error before `[' In file included from TymaBaseAppC.nc:13: In component `BaseStationC': BaseStationC.nc:88: `AM_MONITOR_MSG' undeclared here (not in a function) BaseStationC.nc:89: `AM_SENSING_MSG' undeclared here (not in a function) BaseStationC.nc:85: cannot find `AMSend' BaseStationC.nc:86: cannot find `Receive' BaseStationC.nc:87: cannot find `SubSend' BaseStationC.nc:88: cannot find `MonitorReceive' BaseStationC.nc:89: cannot find `SensorReceive' BaseStationC.nc:90: cannot find `AMPacket' make: *** [exe0] Error 1 ----------------------------------------------------------------- Did I do something wrong concerning the install of Tymo ? Or is there incompatibility with IRIS ? Or something else ? Any help would be greatly appreciated. Thanks, Raphael _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
