This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ANT Time Synchronization Example Understanding

Hello,

could you please explain how the time synchronization works?

What does the function sd_ant_time_sync_broadcast_tx(...) do? Does it include the rtc value of the transmitter into the message that is sent to the receiver when the transmitter sends the message? If this is true, what is the value of the flag byte of the extended data message the receiver receives?

How is the time synchronized? The lower 2 Bytes of the transmitter's rtc is also sent to the receiver as part of the payload and then the receiver does

    comp_chann_val = time_stamp - offset + LED_INVERT_PERIOD;

for what?

Tanks

Related