0
$\begingroup$

I want to synchronize the initial clock of multiple smartphone devices (Android-based) for real-time VoIP communication. Basically, a MANET has been formed and I want to synchronize the clocks up to 5ms difference in MANET.

So far using Ultrasonic chirp, I have been able to synchronize the initial clock with up to 100ms of difference.

What approaches should I follow to get the desired difference?

I have read many research papers I cant use NTP for time-sync and I came to know about PTP about which I am unable to find any algorithm to implement in MANETS.

$\endgroup$

1 Answer 1

0
$\begingroup$

After researching for many months, I chose Cristian’s Algorithm for the synchronization over the internet up to precision of 10ms. PTP could be used as specific hardware is required for that. So I calculated the nanoTime difference between the clocks of two different Smartphones(Server and client) and by using the algorithm, I computed the OFFSET to be used by the client. Then iteratively I pinged 15 to 20 times to server to send its time again and again and after each try I computed average of the difference between my current nanotime + OFFSET - Received Time from server. This improved by OFFSET with the precision upto 10ms difference.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.