I have to measure and verify the latency of messages being sent wirelessly via WiFi/Bluetooth from smartphone to pc. The distance varies between 5 and 10 meters.
Example: message sent from smartphone at time X, received and processed at time Y. Duration: 35ms.
Since these messages are non-trivial (safety and security commands to further machines) its neccesary to synchronize the time between the smartphone and the pc to the most precise accuracy(milliseconds).
This was an easy task using net time for two PCs connected via LAN, but I'm uncertain with smartphones using iOS/Android..
Is it accurately enough to lets say sync both, smartphone and PC with NTP time, or do you know a better way to synchronize time between them?
From what I read, synchronizing time with NTP provides accuracy from ~ 1 to 20 ms. But this range is too vague..
Does anyone had similar problems?