Suppose I am working with an Ant master. I have a channel with a 4 Hz period. I am measuring a continuous signal. I tally up 250 msec averages of the signal and send them as broadcast at the 4Hz rate.
How can I ensure the lowest latency?
In other words, I want to wait until the last possible millisecond to complete the average and present it to the Ant processor for transmission.
At the protocol level, the problem looks like this: Sometime after the last message transmits, I receive an EVENT_TX message. After I get EVENT_TX, I can supply the next message to ANT. But how long can I wait after EVENT_TX before I "miss the bus" on the next outgoing transmission?
I suppose I can measure this, but I would prefer to have an official number.