Hi Brano, Thanks very much. I got it. I can compile it now. However, when I issue a 'make micaz sim' command, I got error messages such as follows:
++++++++++++++++ In component `AppC': AppC.nc:33: no match make: *** [sim-exe] Error 1 ++++++++++++++++ This is what I have in the module file: uses interface PacketTimeStamp<TMilli,uint32_t> as PacketTimeStampMilli; and this is what I have in the configuration file: components ActiveMessageC; AppC.PacketTimeStampMilli -> ActiveMessageC; Am I missing something here? Is it the ActiveMessageC is the correct component to use to wire the PacketTimeStamp in order to get the transmission time for a packet? FYI, I am using the CTP and wishes to get the transmission time for each packet in CTP. I have also tried to wire the PacketTimeStamp using the CC2420PacketC component but got a very long error messages after issuing make micaz sim...I am so stucked what to do now... Please again help me... Thanks very much. Yusnaidi ------------------------------ > > Message: 2 > Date: Tue, 18 May 2010 10:53:11 +1000 > From: "Kusy, Brano" <[email protected]> > Subject: Re: [Tinyos-help] Packet transmission time > To: Yusnaidi Md Yusof <[email protected]>, > "[email protected]" > <[email protected]> > Message-ID: > <c8182217.d635%[email protected]<c8182217.d635%[email protected]> > > > Content-Type: text/plain; charset="US-ASCII" > > > 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 > > `*' > include message.h in your module file... > > brano > > > >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
