Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Problem receiving burst transfer data in ANT

Rank

Total Posts: 5

Joined 2016-04-01

PM

Hi,

I am developing ANT support app for android device which can work as master (COO).

till now i am successfully getting BROADCAST_DATA and CHANNEL_EVENT as per my requirement and is working fine. i can connect multiple slave devices with my smart phone which is behaving as master.

But unfortunately i am not getting BURST TRANSFER DATA in onReceiveMessage callback.
i have also set Lib config parameter as below:

mAntChannel.setChannelId(channelId);   //  set channle id
mAntChannel.setPeriod(CHANNEL_PROOF_PERIOD);  //set period
mAntChannel.setRfFrequency(CHANNEL_PROOF_FREQUENCY); //set frequency
LibConfig libConfig = new LibConfig(truetruetrue);  //this is for getting extended data
mAntChannel.setAdapterWideLibConfig(libConfig);
mAntChannel.open(); 


Any help or suggestion will be greatly appreciated.

Thanks.
     
RankRankRankRank

Total Posts: 313

Joined 2011-09-12

PM

If you are receiving broadcast and channel events, I don't know why you wouldn't receive burst data as well. It is also received on the same callback:
public void onReceiveMessage(MessageFromAntType messageTypeAntMessageParcel messageParcelthrows RemoteException 


Maybe the connected device isn't actually sending a burst?      

Signature

Dynastream Developer

Rank

Total Posts: 5

Joined 2016-04-01

PM

Thanks a lot for the valuable reply Shane.

Yes connected device is sending a burst we have checked it through ANTWARE software.

As device is sending advance burst messages, Do we need to do anything specific to receive advance burst data?

Thanks again.


     
RankRankRankRank

Total Posts: 313

Joined 2011-09-12

PM

Advanced burst is enabled by default on all ANT adapters that support it. It requires no application configuration. If you send bursts to an advanced burst enabled receiver it will send as an advanced burst. If you receive a burst from and advanced burst sender it will transfer as an advanced burst and deliver them to your app as normal burst packets, so you don't need to worry about message ID 0x72 (the Advanced Burst Data event) in the current Android implementation.

It is done automatically without app control because channels on the adapter are shared between multiple apps and the advanced burst configuration is an adapter-wide setting. Controlling it internally provides a consistent experience for all apps.      

Signature

Dynastream Developer