Hi All,
I need to get the time of packet transmission. I guess to use the
PacketTimeStamp interface to get this time where I need to use the timestamp
method in the sendDone() and receive() method. Thus, I wire the
PacketTimeStamp interface to the ActiveMessageC components such as follows:
In the module file:
uses interface PacketTimeStamp<TMilli,uint32_t> as PacketTimeStampMilli;
In the configuration file:
AppC.PacketTimeStampMilli -> ActiveMessageC;
However, when I issued make micaz, I got the following errors:
------------------
In interface `PacketTimeStamp':
/opt/tinyos-2.x/tos/interfaces/PacketTimeStamp.nc:38: syntax error before
`*'
In file included from /opt/tinyos-2.x/tos/interfaces/PacketTimeStamp.nc:38,
from TestNetworkC.nc:41,
from TestNetworkAppC.nc:21:
/opt/tinyos-2.x/tos/interfaces/PacketTimeStamp.nc:27: syntax error before
`message_t'
/opt/tinyos-2.x/tos/interfaces/PacketTimeStamp.nc:52: syntax error before
`*'
In file included from /opt/tinyos-2.x/tos/interfaces/PacketTimeStamp.nc:52,
from TestNetworkC.nc:41,
from TestNetworkAppC.nc:21:
/opt/tinyos-2.x/tos/interfaces/PacketTimeStamp.nc:41: syntax error before
`message_t'
/opt/tinyos-2.x/tos/interfaces/PacketTimeStamp.nc:59: syntax error before
`*'
In file included from /opt/tinyos-2.x/tos/interfaces/PacketTimeStamp.nc:59,
from TestNetworkC.nc:41,
from TestNetworkAppC.nc:21:
/opt/tinyos-2.x/tos/interfaces/PacketTimeStamp.nc:55: syntax error before
`message_t'
/opt/tinyos-2.x/tos/interfaces/PacketTimeStamp.nc:67: syntax error before
`*'
In file included from /opt/tinyos-2.x/tos/interfaces/PacketTimeStamp.nc:67,
from TestNetworkC.nc:41,
from TestNetworkAppC.nc:21:
/opt/tinyos-2.x/tos/interfaces/PacketTimeStamp.nc:62: syntax error before
`message_t'
In file included from
/opt/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketC.nc:54,
from
/opt/tinyos-2.x/tos/chips/cc2420/receive/CC2420ReceiveC.nc:51,
from
/opt/tinyos-2.x/tos/chips/cc2420/transmit/CC2420TransmitC.nc:94,
from
/opt/tinyos-2.x/tos/chips/cc2420/csma/CC2420CsmaC.nc:62,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420RadioC.nc:62,
from
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:67,
from
/opt/tinyos-2.x/tos/platforms/micaz/ActiveMessageC.nc:65,
from TestNetworkAppC.nc:29:
In component `CC2420PacketP':
/opt/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:128: conflicting
types for `PacketTimeStamp32khz.isValid'
/opt/tinyos-2.x/tos/interfaces/PacketTimeStamp.nc(CC2420PacketP):38:
previous declaration of `PacketTimeStamp32khz.isValid'
/opt/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:133: conflicting
types for `PacketTimeStamp32khz.timestamp'
/opt/tinyos-2.x/tos/interfaces/PacketTimeStamp.nc(CC2420PacketP):52:
previous declaration of `PacketTimeStamp32khz.timestamp'
/opt/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:138: conflicting
types for `PacketTimeStamp32khz.clear'
/opt/tinyos-2.x/tos/interfaces/PacketTimeStamp.nc(CC2420PacketP):59:
previous declaration of `PacketTimeStamp32khz.clear'
/opt/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:144: conflicting
types for `PacketTimeStamp32khz.set'
/opt/tinyos-2.x/tos/interfaces/PacketTimeStamp.nc(CC2420PacketP):67:
previous declaration of `PacketTimeStamp32khz.set'
/opt/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:152: conflicting
types for `PacketTimeStampMilli.isValid'
/opt/tinyos-2.x/tos/interfaces/PacketTimeStamp.nc(CC2420PacketP):38:
previous declaration of `PacketTimeStampMilli.isValid'
/opt/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:159: conflicting
types for `PacketTimeStampMilli.timestamp'
/opt/tinyos-2.x/tos/interfaces/PacketTimeStamp.nc(CC2420PacketP):52:
previous declaration of `PacketTimeStampMilli.timestamp'
/opt/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:166: conflicting
types for `PacketTimeStampMilli.clear'
/opt/tinyos-2.x/tos/interfaces/PacketTimeStamp.nc(CC2420PacketP):59:
previous declaration of `PacketTimeStampMilli.clear'
/opt/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc:171: conflicting
types for `PacketTimeStampMilli.set'
/opt/tinyos-2.x/tos/interfaces/PacketTimeStamp.nc(CC2420PacketP):67:
previous declaration of `PacketTimeStampMilli.set'
/opt/tinyos-2.x/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning
"*** LOW POWER COMMUNICATIONS DISABLED ***"
make: *** [exe0] Error 1
---------------------------
Is it I made a wrong or mistake wiring? If it is, can I know what is the
correct wiring, please...
Or is there other interface should I use in order to get the packet
transmission time?
Thank you.
Yusnaidi
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help