hello,
I have a question about burst transmission using Ant.
Whenever I transmit in bursts at regular intervals with the channel open, I always get an error on the 16th transmission.
(The same thing happens if I release the channel and start from initialization again).
Even if I try burst transmission for 5 seconds, 30 seconds, or 1 minute, the error occurs at the 16th transmission.
If I try to broadcast transmission for 5 seconds, 30 seconds, or 1 minute, the error does not occur.
Is there any best practice or specific frequency limit for burst transmission?
Below is the source code for the burst transmission part.
thank you
Environment
Venu2Plus SW: 6.11
VenuSq Music SW:3.40
Forerunner255 SW:10.10
- Initialize
const TxChannelAssign = new Ant.ChannelAssignment(Ant.CHANNEL_TYPE_SHARED_BIDIRECTIONAL_TRANSMIT, Ant.NETWORK_PLUS);
GenericChannel.initialize(method(:onMessage), TxChannelAssign);
GenericChannel.setBurstListener(listener);
- DeviceConfig
deviceConfig = new Ant.DeviceConfig({
deviceNumber => 123,
:deviceType => 1,
:transmissionType => 3,
:messagePeriod => 8192,
:radioFrequency => 66});
- Send
function sendBurst(){
if(sending){
System.println("sending");
return;
}
sending = true;
GenericChannel.sendBurst(burstMessage);
sendCount++;
System.println("sendCount " + sendCount);
}
- Timer
timer.start(method(:sendBurst), 5000, true);