Acknowledged
over 1 year ago

Bug report: ANT GenericChannel.release causes issues with other channels

In our app we have 3 ANT generic channels.  One is a master, two are slaves.

I am trying to change one of the channels to a BackgroundScan channel.  

To do that I have to firstly switch it to a "Ant.CHANNEL_TYPE_RX_ONLY" type.  To do that I have to reinitialise the channel, i.e.:

channel = new Ant.ChannelAssignment
            (
                Ant.CHANNEL_TYPE_RX_ONLY,
                Ant.NETWORK_PUBLIC
            );
I believe we cannot change it on the fly.  Since this channel is already assigned I have to release it first, using GenericChannel.release().
When changing back to standard master channel, we do GenericChannel.close() then GenericChannel.release().  On this GenericChannel.release() command the first channel I assigned stops working - I have isolated this line as being the problem. The first channel is still transmitting data but the onMessage event stops getting called.
So in short "releasing" an rx only background scanning channel causes the first assigned channel in my app to stop working.
Any ideas of a workaround?
 
Parents Comment Children
No Data