when i tried to run the TestTimeSync from  vu/apps.
It runs good for TestTimeSyncPollerC component.
But when I uncomment the TestTimeSyncC component and run i get following errors 
as shown below.

I have included the /lib/TimeSync folder as well as lib/CC2420 into by 
directory from contrib/vu folder.
Also  im using tinyos-1.x
My Makefile is:
=====================================================================
PFLAGS += -I%T/lib/CC2420

#period of timesync msg broadcast and the period of reference broadcast
PFLAGS += -DTIMESYNC_RATE=30 -DTIMESYNC_POLLER_RATE=10 -DTIMESYNC_SYSTIME
# -DTIMESYNC_DIAG_POLLER: response to poller is diag msg, otherwise regular msg
# warning! DiagMsgC does not work corretctly for telos platform!
ifdef TIMESYNC_DIAG_POLLER
    PFLAGS += -I%T/lib/DiagMsg -DTIMESYNC_DIAG_POLLER
endif

#path to the vanderbilt TimeSync component
PFLAGS += -I%T/lib/TimeSync 


############################ SPECIFY COMPONENT FILE ###########################
ifndef COMPONENT
   COMPONENT=TestTimeSyncC
# COMPONENT=TestTimeSyncPollerC
endif

include ../Makerules

================================================================



My Output error:
=================================================================
[EMAIL PROTECTED] /opt/tinyos-1.x/apps/TestTimeSync
$ make micaz
mkdir -p build/micaz
    compiling TestTimeSyncC to a micaz binary
ncc -o build/micaz/main.exe -Os -I%T/lib/CC2420 -DTIMESYNC_RATE=30 -DTIMESYNC_PO
LLER_RATE=10 -DTIMESYNC_SYSTIME -I%T/lib/TimeSync  -finline-limit=100000 -Wall -
Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=micaz -fnesc-cfile=build/mica
z/app.c -board=micasb -I%T/lib/Deluge -DIDENT_PROGRAM_NAME=\"TestTimeSyncC\" -DI
DENT_USER_ID=\"xyz\" -DIDENT_HOSTNAME=\"xyz\" -DIDENT_USER_HASH=0x350
fd2a4L -DIDENT_UNIX_TIME=0x49226766L -DIDENT_UID_HASH=0x33533ea2L -I/opt/tinyos-
1.x/tos/lib/CC2420Radio TestTimeSyncC.nc -lm
In file included from C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/TimeSync/TimeSyncC
.nc:40,
                 from TestTimeSyncC.nc:29:
In component `TimeSyncM':
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/TimeSync/TimeSyncM.nc: In function `Rece
iveMsg.receive':
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/TimeSync/TimeSyncM.nc:316: interface has
 no command or event named `getStamp2'
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/TimeSync/TimeSyncM.nc: In function `send
Msg':
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/TimeSync/TimeSyncM.nc:365: interface has
 no command or event named `addStamp2'
In file included from C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420/SysTimeStam
pingC.nc:20,
                 from C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/TimeSync/TimeSyncC
.nc:50,
                 from TestTimeSyncC.nc:29:
In component `SysTimeStampingM':
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420/SysTimeStampingM.nc: At top level
:
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420/SysTimeStampingM.nc:44: `addStamp
2' is not in interface `TimeStamping'
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420/SysTimeStampingM.nc:108: `getStam
p2' is not in interface `TimeStamping'
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420/SysTimeStampingM.nc:28: `TimeStam
ping.getStamp' not implemented
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420/SysTimeStampingM.nc:28: `TimeStam
ping.addStamp' not implemented
In file included from TimeSyncDebuggerC.nc:34,
                 from TestTimeSyncC.nc:29:
In component `TimeSyncDebuggerM':
TimeSyncDebuggerM.nc: In function `ReceiveMsg.receive':
TimeSyncDebuggerM.nc:133: interface has no command or event named `getStamp2'
make: *** [exe0] Error 1
------================================-============================




      
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to