Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

ANT Time Sync

Avatar
Rank

Total Posts: 21

Joined 2011-11-08

PM

Has anybody come up with a way to use ANT to synchronize real time clocks?

I have several sensors that get the current time from a GPS signal and then use that to time stamp the recorded data.

I'd like my sensors to work even without all of them having GPS signal. The sensor with GPS could pass the current time to the other sensors, hopefully with < 10 ms accuracy.

But since I don't know exactly when an ANT message will be sent, I'm not sure how to estimate the round trip delay.

Currently my only idea is to run the channel at 200Hz, but that is a waste of battery. Any other ideas?      
Avatar
RankRank

Total Posts: 39

Joined 2011-06-29

PM

If your time enabled sensor (the one using GPS to synchronize) had a master ANT channel broadcasting that time value, the other sensors could pick it up with approximately one message period delay.

My reasoning for these timings is that if the master wrote its current internal time to the ANT chip (in the form of a broadcast message) as soon as it got an EVENT_TX, then that message would get sent one message period later. You could even take the internal time and add one message period worth of time to it so the slave devices could just use the value.

Any timing error would come from the time between the EVENT_TX coming across the UART, and the MPU processing it. This should be very minimal (less than 10ms).
It also has the added benefit that the ANT message period corresponds to update latency, and not accuracy. So you can potentially set your period to 0.5Hz.      
Avatar
Rank

Total Posts: 21

Joined 2011-11-08

PM

That sounds like a good idea, I'll give it a try.