Hi, A bunch of errors where it is not finding components like Leds and others, you should look into the Makefile and see if you are pointing to the correct place to look for those components, like I have this in my Makefile:
PFLAGS += -I$(TOSDIR)/lib/net/tymo -I$(TOSDIR)/lib/net/tymo/mh -I$(TOSDIR)/lib/net/tymo/dymo -I../tymaluate/monitor/ -I../tymaluate/sense/ Secondly, 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.. 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: Wednesday, July 02, 2008 12:10 AM To: [email protected] Subject: [Tinyos-help] problems with tymo-dymo Well, I was searching for some implemented protocols for tinyOS 2.x and I found this one, which seemed to be what I was looking for. However, after downloading its source and placing it inside my tinyos2 installation directory, whenever I try to create the binary, with make, lots of errors appear, and I really cannot understand why that happens. For instance, when I am in the MHBaseStation/ Directory, and type make mica2, that is what follows: "[EMAIL PROTECTED]:/opt/tinyos2/tinyos-2.x-src/apps/MHBaseStation$ make mica2 mkdir -p build/mica2 compiling TymaBaseAppC to a mica2 binary ncc -o build/mica2/main.exe -Os -I../../tos/lib/net/dymo -I../../tos/lib/net/multihop -I../tymaluate/monitor/ -I../tymaluate/sense/ -Wall -Wshadow -Wnesc-all -target=mica2 -fnesc-cfile=build/mica2/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22 -finline-limit=100000 -DIDENT_PROGRAM_NAME=\"TymaBaseAppC\" -DIDENT_USER_ID=\"fernando\" -DIDENT_HOSTNAME=\"baco.inf.ufpr.b\" -DIDENT_USER_HASH=0x92905e1aL -DIDENT_UNIX_TIME=0x486a3a0fL -DIDENT_UID_HASH=0xb0fea519L -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, components)' -fnesc-dumpfile=build/mica2/wiring-check.xml TymaBaseAppC.nc -lm ../tymaluate/monitor/MonitorM.nc:1:26: dymo_routing.h: No such file or directory In file included from TymaBaseAppC.nc:11: In component `MonitorC': MonitorC.nc:5: failed to preprocess ../tymaluate/monitor/MonitorM.nc MonitorC.nc:5: component DymoNetworkC not found MonitorC.nc:8: cannot find `Leds' MonitorC.nc:9: cannot find `Read' MonitorC.nc:10: cannot find `SplitControl' MonitorC.nc:11: cannot find `DymoMonitor' MonitorC.nc:12: cannot find `RoutingTableInfo' MonitorC.nc:18: cannot find `Receive' MonitorC.nc:19: cannot find `MHSend' MonitorC.nc:20: cannot find `Intercept' MonitorC.nc:22: cannot find `MHPacket' In file included from BaseStationC.nc:73, from TymaBaseAppC.nc:13: In component `ConverterM': ConverterM.nc:30: conflicting types for `AMSend.getPayload' /opt/tinyos2/tinyos-2.x-src/tos/interfaces/AMSend.nc:124: previous declaration of `AMSend.getPayload' ConverterM.nc: In function `AMSend.getPayload': ConverterM.nc:31: too few arguments to function ConverterM.nc: At top level: ConverterM.nc:46: `getPayload' is not in interface `Receive' ConverterM.nc: In function `Receive.getPayload': ConverterM.nc:47: interface has no command or event named `getPayload' ConverterM.nc: At top level: ConverterM.nc:50: `payloadLength' is not in interface `Receive' ConverterM.nc: In function `Receive.payloadLength': ConverterM.nc:51: interface has no command or event named `payloadLength' In component `BaseStationC': BaseStationC.nc: At top level: BaseStationC.nc:77: cannot find `SplitControl' BaseStationC.nc:87: cannot find `MHSend' BaseStationC.nc:88: cannot find `Receive' BaseStationC.nc:89: cannot find `Receive' BaseStationC.nc:90: cannot find `MHPacket' BaseStationC.nc:96: cannot find `Packet' BaseStationC.nc:97: cannot find `MHPacket' make: *** [exe0] Error 1" Any idea of what could possibly be wrong? _______________________________________________ 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
