This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to get ANT tx timestamp

I need to synchronise a time stamp on ant ANT slave with the master.  Timesync would be ok but the message has to be acknowledged which ant timesync messages cannot do.

I can do my own timesync if I know what time the message is actually being sent by the ANT stack.  I can get the timestamp on the tx event, but this is a few ticks after the actual message was sent I presume (at least it is on the rx event).  I don't see any way to get the RTC timestamp of when the message was asent

Is there a way I can get the time when the message was actually sent?

Thank you.

Parents
  • I don't know how accurate you need the timing here, but typically it should be a pretty consistent and fixed offset between the data sent event on the master and data received event on the slave, so if you measure with a logic analyzer the timing difference between the two events, you should be able to use this offset to compensate relatively accurate in general. I am not aware of any other way of doing this really.

    Kenneth

  • Thank you Kenneth.  Do you have any links showing how to use a logic analyzer, in particular to compare timings of slave and master events?  I am using segger embeddded studio.

Reply Children
Related