Hi Friends,

I want to use Tymo for p2p routing.I've downloded library from sourceforge.
Now How can I install Tymo ?
I just copied every file in the lib,system,interface,types to My tinyos
installation folder. and then I put this line into my application make file
= *CFLAGS += -I$(TOSDIR)/lib/net/multihop -I$(TOSDIR)/lib/net/dymo

*I implemented the simple code from http://docs.tinyos.net/index.php/Tymo
But when i want to make the application (make micaz sim) ,It gets me list of
errors that I think is related to Tymo files not my application codes:

*In file included from
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHServiceC.nc:33,
                 from /opt/tinyos-2.1.1/tos/lib/net/dymo/DymoNetworkC.nc:38,
                 from AttackAppC.nc:12:
In component `MHPacketM':
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc:38: conflicting types
for `Packet.getPayload'
/opt/tinyos-2.1.1/tos/interfaces/Packet.nc:115: previous declaration of
`Packet.getPayload'
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc: In function
`Packet.getPayload':
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc:39: warning: passing
argument 2 of `SubPacket.getPayload' makes integer from pointer without a
cast
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc: In function
`Packet.payloadLength':
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc:50: warning: passing
argument 2 of `SubPacket.getPayload' makes integer from pointer without a
cast
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc: In function
`Packet.setPayloadLength':
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc:54: warning: passing
argument 2 of `SubPacket.getPayload' makes integer from pointer without a
cast
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc: In function
`MHPacket.destination':
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc:68: warning: passing
argument 2 of `SubPacket.getPayload' makes integer from pointer without a
cast
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc: In function
`MHPacket.isForMe':
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc:72: warning: passing
argument 2 of `SubPacket.getPayload' makes integer from pointer without a
cast
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc:72: warning: passing
argument 2 of `SubPacket.getPayload' makes integer from pointer without a
cast
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc: In function
`MHPacket.setDestination':
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc:76: warning: passing
argument 2 of `SubPacket.getPayload' makes integer from pointer without a
cast
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc: In function
`MHPacket.setSource':
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc:80: warning: passing
argument 2 of `SubPacket.getPayload' makes integer from pointer without a
cast
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc: In function
`MHPacket.setType':
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc:84: warning: passing
argument 2 of `SubPacket.getPayload' makes integer from pointer without a
cast
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc: In function
`MHPacket.source':
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc:89: warning: passing
argument 2 of `SubPacket.getPayload' makes integer from pointer without a
cast
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc: In function
`MHPacket.type':
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc:93: warning: passing
argument 2 of `SubPacket.getPayload' makes integer from pointer without a
cast
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc: At top level:
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc:28: `MHPacket.group' not
implemented
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc:28: `MHPacket.setGroup'
not implemented
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHPacketM.nc:28:
`MHPacket.localGroup' not implemented
In file included from
/opt/tinyos-2.1.1/tos/lib/net/multihop/MHServiceC.nc:34,
                 from /opt/tinyos-2.1.1/tos/lib/net/dymo/DymoNetworkC.nc:38,
                 from AttackAppC.nc:12:
In component `ForwardingEngineM':
/opt/tinyos-2.1.1/tos/system/ForwardingEngineM.nc: In function
`AMSend.send':
/opt/tinyos-2.1.1/tos/system/ForwardingEngineM.nc:62: interface has no
command or event named `payloadLength'
/opt/tinyos-2.1.1/tos/system/ForwardingEngineM.nc:73: interface has no
command or event named `payloadLength'
/opt/tinyos-2.1.1/tos/system/ForwardingEngineM.nc: In function
`SubReceive.receive':
/opt/tinyos-2.1.1/tos/system/ForwardingEngineM.nc:96: warning: passing
argument 2 of `PPacket.getPayload' makes integer from pointer without a cast
/opt/tinyos-2.1.1/tos/system/ForwardingEngineM.nc:102: warning: passing
argument 2 of `PPacket.getPayload' makes integer from pointer without a cast
/opt/tinyos-2.1.1/tos/system/ForwardingEngineM.nc: In function
`Timer.fired':
/opt/tinyos-2.1.1/tos/system/ForwardingEngineM.nc:157: warning: passing
argument 2 of `PPacket.getPayload' makes integer from pointer without a cast
/opt/tinyos-2.1.1/tos/system/ForwardingEngineM.nc: At top level:
/opt/tinyos-2.1.1/tos/system/ForwardingEngineM.nc:200: conflicting types for
`AMSend.getPayload'
/opt/tinyos-2.1.1/tos/interfaces/AMSend.nc:124: previous declaration of
`AMSend.getPayload'
/opt/tinyos-2.1.1/tos/system/ForwardingEngineM.nc: In function
`AMSend.getPayload':
/opt/tinyos-2.1.1/tos/system/ForwardingEngineM.nc:201: warning: passing
argument 2 of `PPacket.getPayload' makes integer from pointer without a cast
/opt/tinyos-2.1.1/tos/system/ForwardingEngineM.nc: At top level:
/opt/tinyos-2.1.1/tos/system/ForwardingEngineM.nc:208: `getPayload' is not
in interface `Receive'
/opt/tinyos-2.1.1/tos/system/ForwardingEngineM.nc: In function
`Receive.getPayload':
/opt/tinyos-2.1.1/tos/system/ForwardingEngineM.nc:209: warning: passing
argument 2 of `PPacket.getPayload' makes integer from pointer without a cast
/opt/tinyos-2.1.1/tos/system/ForwardingEngineM.nc: At top level:
/opt/tinyos-2.1.1/tos/system/ForwardingEngineM.nc:212: `payloadLength' is
not in interface `Receive'
/opt/tinyos-2.1.1/tos/system/ForwardingEngineM.nc:225: conflicting types for
`Intercept.forward'
/opt/tinyos-2.1.1/tos/interfaces/Intercept.nc:31: previous declaration of
`Intercept.forward'
In file included from
/opt/tinyos-2.1.1/tos/lib/net/dymo/sim/DymoServiceC.nc:34,
                 from /opt/tinyos-2.1.1/tos/lib/net/dymo/DymoNetworkC.nc:38,
                 from AttackAppC.nc:12:
In component `DymoEngineM':
/opt/tinyos-2.1.1/tos/lib/net/dymo/sim/DymoEngineM.nc: In function
`display':
/opt/tinyos-2.1.1/tos/lib/net/dymo/sim/DymoEngineM.nc:63: too few arguments
to function `AMSend.getPayload'
In file included from
/opt/tinyos-2.1.1/tos/lib/net/dymo/sim/DymoServiceC.nc:34,
                 from /opt/tinyos-2.1.1/tos/lib/net/dymo/DymoNetworkC.nc:38,
                 from AttackAppC.nc:12:
In component `DymoPacketM':
/opt/tinyos-2.1.1/tos/lib/net/dymo/DymoPacketM.nc: In function
`DymoPacket.getType':
/opt/tinyos-2.1.1/tos/lib/net/dymo/DymoPacketM.nc:44: warning: passing
argument 2 of `Packet.getPayload' makes integer from pointer without a cast
/opt/tinyos-2.1.1/tos/lib/net/dymo/DymoPacketM.nc: In function
`DymoPacket.getSize':
/opt/tinyos-2.1.1/tos/lib/net/dymo/DymoPacketM.nc:49: warning: passing
argument 2 of `Packet.getPayload' makes integer from pointer without a cast
/opt/tinyos-2.1.1/tos/lib/net/dymo/DymoPacketM.nc: In function
`DymoPacket.createRM':
/opt/tinyos-2.1.1/tos/lib/net/dymo/DymoPacketM.nc:60: warning: passing
argument 2 of `Packet.getPayload' makes integer from pointer without a cast
/opt/tinyos-2.1.1/tos/lib/net/dymo/DymoPacketM.nc: In function
`DymoPacket.addInfo':
/opt/tinyos-2.1.1/tos/lib/net/dymo/DymoPacketM.nc:90: warning: passing
argument 2 of `Packet.getPayload' makes integer from pointer without a cast
/opt/tinyos-2.1.1/tos/lib/net/dymo/DymoPacketM.nc: In function
`processMessage.runTask':
/opt/tinyos-2.1.1/tos/lib/net/dymo/DymoPacketM.nc:132: warning: passing
argument 2 of `Packet.getPayload' makes integer from pointer without a cast
/opt/tinyos-2.1.1/tos/lib/net/dymo/DymoPacketM.nc:148: warning: passing
argument 2 of `Packet.getPayload' makes integer from pointer without a cast

*
please help me with this.

Thanks in advance

-- 
Mojtaba Raznahan
BS of Computer engineering
TMU university
www.raznahan.com
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to