Hello Everybody:

I am current doing a project needing synchronization. My supervisor
suggest me to use vanderbilt university's library. My mote is "micaz".

Now I have faced a serious problem when i try to do TestTimeSync.

In TimeSyncDebuggerM.nc ReceiveMsg.receive(TOS_MsgPtr p),"call
TimeStam.getStamp()" . The local clock and the global clock are all 0 when
I use printDiagMigs to print.

I have checked all the programs in your library. I have included the
cc2420,and in the directory the "SysTimeStampingM" has a event called
RadioReceiveCoordinator.startSymbol to get the value of rcv_time.
TimeStamping.getStamp() just return rcv_time's value. Now I can not get
the rcv_time.

I am not sure if my suppose is correct or not . I have spent a long time
in this program.Cound you give me some hint to deal with the problem.

The following is my make file.




################################################################################
# supported platforms:  mica2,
#                       mica2dot,
#                       micaZ (only TIMESYNC_SYSTIME),
#                       telos
#
# the following directives are recognized by TimeSync component
#
# -DTIMESYNC_DEBUG: enforces multiple hops in software
# -DTIMESYNC_SYSTIME: choice of clock source(1MHz internal, or 32kHz
external)
#
################################################################################

#period of timesync msg broadcast and the period of reference broadcast
PFLAGS += -DTIMESYNC_RATE=30 -DTIMESYNC_SYSTIME -DTIMESYNC_DIAG_POLLER
-DTIMESYNC_DEBUG

# -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




Thanks for your time.

Yours Sincerely.






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

Reply via email to