Regarding the simulation of timesync: None
of the simulators of which I know are explicitly prepared for that. You need to
do some hacking to achieve nonuniform local clock rates. That is, instead of
using the simulated clock directly, you need to transform it using node
specific skew values. Of course, you have to be sure that every time the local
time is queried it is the transformed clock you use, not the clock of the simulator.
I have done this in Prowler, but I guess
the same should work with tossim, avrora, etc.
Janos
-----Original Message-----
From: A.K.
[mailto:[EMAIL PROTECTED]
Sent: Saturday,
November 05, 2005 9:41 PM
To: Janos Sallai
Cc: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: RE: [Tinyos-help]
Simulator for Time Synch
I am also developing a TimeSync protocol in sensornet.
Could you please tell me what configuration I should
use, I mean
TinyOS,nesC,avr & tinyOs-tools version as well as
which micas. What simulator to use though I am not going to simulate but
actually implementing on Mica2 with 510 board.
Lastly,can you please send me the link to get the
SourceCode for FTSP and TPSN, please.
Also I am getting some strange assembler errors, my
configurations is:
-----------------------------
vr-insight-6.3-1
avr-binutils-2.13.2.1-1
avr-libc-20030512cvs-1
avr-binutils-2.15tinyos-3
avr-insight-pre6.0cvs.tinyos-1.3
avr-gcc-3.3tinyos-1
avr-gcc-3.4.3-1
tinyos-1.1.0-1
tinyos-1.1.13May2005cvs-1
tinyos-tools-1.2.0-2
nesc-1.2-1
------------------------------------------
compiling Blink to a mica2 binary
ncc -o build/mica2/main.exe -Os -board=micasb -target=mica2
-I%T/../beta/MyBetaCode -DCC1K_DEF_FREQ=916700000 -Wall -Wshadow
-DDEF_TOS_AM_GROUP=0x33 -Wnesc-all -finline-limit=100000
-fnesc-cfile=build/mica2/app.c Blink.nc -lm
tmp/cclk41xc.s: Assembler messages:
/tmp/cclk41xc.s:10: Error: unknown opcode `disabled'
/tmp/cclk41xc.s:12: Error: unrecognized symbol type ""
/tmp/cclk41xc.s:12: Error: unknown opcode `disabled'
/tmp/cclk41xc.s:13: Error: expected comma after name `HPLPowerManagementM' in
.size directive
/tmp/cclk41xc.s:13: Error: unknown opcode `disabled'
/tmp/cclk41xc.s:14: Error: unknown opcode `hplpowerma'
/tmp/cclk41xc.s:17: Error: unrecognized symbol type ""
/tmp/cclk41xc.s:17: Error: unknown opcode `adjustinte'
Janos Sallai
<[EMAIL PROTECTED]> wrote:
Smaitra,
I can only speak about
Prowler, since I have not tried simulating time sync with any other tools.
Prowler is a DES simulator, where all the (discrete) events have the same
common universal time base. You can assume that the local clock values of the
nodes are functions of the universal clock, i.e. local_time =
universal_time * skew + offset. The local clocks can be simulated by storing
the skew and offset as variables in the local memory of the nodes, and applying
the above function to the universal time of the actual event. This is a hack of
course, but it will give you pretty realistic results. Just don’t forget
to use the inverse function when setting local timers.
The same thing should
work in JProwler as well.
Regards,
Janos
-----Original Message-----
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sharmistha Maitra
Sent: Wednesday,
October 19, 2005 4:08 PM
To:
[email protected]
Subject: [Tinyos-help] Simulator for
Time Synch
Hi All,
I want to simulate a timesynch algorithm that will be
compensating for propagation delays, clock drifts. I want to timestamp at the
mac level. What simulator would you suggest for this ? TOSSIM is a good
option but cannot handle timestamping at lower levels. Another option is
Prowler/Jprolwer. But I read from a paper that it is a event driven
simulator. Another option is NESLsim which the Berkeley guys used
to simulate TPSN. But I am confused as to which one I should use ?
I have a faint hunch that I need a time driven
simulator because I want my times to be absolute values not virtual.
For example I will have a base station with GPS that will have the
absolute UTC time, and I will propagate this time to the rest of the network.
My aim would be to check the time values in the all the nodes, they should
be same as the GPS time on the base node. So I guess I need a
time simulator. Correct me if I am wrong.
Any body who had experience with this, can you help me
? Which simulator would be good for time synchronization simulation ?
Many thanks for all your help,
Regards,
Smaitra.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Yahoo!
FareChase - Search multiple travel sites in one click.