Hello Sharmistha,
 In TimeSyncDebugger.nc globaltime = localtime is absolutely correct actually.
If  you see next line it looks like
"d.is_synced = call GlobalTime.local2Global(&d.globalClock);"

here  call  GlobalTime.local2Global  conevrts local clock into global clock . already stored in (d.globalClock). so after this call d.globalClock has global clock instead local.

Now lets come to second question. how much time it takes to synchronise.
Well it depends on -DTIMESYNC_RATE   value in  your make  file  and  ENTRY_VALID_LIMIT.
nodes will be synchronised after interval  -DTIMESYNC_RATE*ENTRY_VALID_LIMIT.
for example if you set -DTIMESYNC_RATE=30 and let say ENTRY_VALID_LIMIT=4(default).
then it will take 30*4=120 seconds minimum assuming all communication gone well.

Hope This helps.
Regards:
Santosh Dwivedi


On 12/20/05, santosh dwivedi <[EMAIL PROTECTED]> wrote:
Hello Sharmistha,
 In TimeSyncDebugger.nc globaltime = localtime is absolutely correct actually.
If  you see next line it looks like
"d.is_synced = call GlobalTime.local2Global(&d.globalClock);"

here  call  GlobalTime.local2Global  conevrts local clock into global clock . already stored in (d.globalClock). so after this call d.globalClock has global clock instead local.

Now lets come to second question. how much time it takes to synchronise.
Well it depends on -DTIMESYNC_RATE   value in  your make  file  and  ENTRY_VALID_LIMIT.
nodes will be synchronised after interval  -DTIMESYNC_RATE*ENTRY_VALID_LIMIT.
for example if you set -DTIMESYNC_RATE=30 and let say ENTRY_VALID_LIMIT=4(default).
then it will take 30*4=120 seconds minimum assuming all communication gone well.

Hope This helps.
Regards:
Santosh Dwivedi



On 12/20/05, Sharmistha Maitra <[EMAIL PROTECTED] > wrote:

Hi All,

This is me again ...

Yes Santosh, I realised that TimeSyncDebugger.nc makes globaltime = localtime(I do not know why ?); so the real check is "is_synched" which in my case was showing zero, so unsynchronized.

Does anybody know how long it takes to achieve synch in FTSP ? There is a part in TimeSyncM.nc which says "if timesynch error is bigger than the 100 (ENTRY_THROWOUT_LIMIT) clear the regression table". I think this is the only reason why I am getting zero entries in my table. I have kept the network(a poller, a base station, 2 timesynch nodes) ON for a maximum of 2 minutes, do you think I need to wait long to achieve synch ? And then probably I will see values in my regression table ?

In hardware is there is way to debug (something like 'dbg'..this might be a dumb question..I am sorry) other than the three LEDS on the mote ?

Wish you all a great holidays.....

Thanks,

Sharmistha.

 

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

Reply via email to