Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

In Broadcast Message : NRF_ANT_ERROR_TRANSFER_IN_PROGRESS Error Return

Rank

Total Posts: 13

Joined 2017-04-12

PM

Hi,

What is the best way to minimize transfer in progress errors when trying to send ANT messages? I am using the S310 stack (s310_nrf51422_3.0.0_softdevice.hex) on an nRF51422. I have a busy ANT channel that is sending messages at 4hz and then every once in a while also sending an out of band acknowledged message in response to a user action. I frequently get NRF_ANT_ERROR_TRANSFER_IN_PROGRESS values returned.

I've tried writing a small 20 retry loop for sd_ant_broadcast_message_tx(...) message, but I have get every time NRF_ANT_ERROR_TRANSFER_IN_PROGRESS Error, I have to set the retries fairly high before it returns and I don't like the idea of blocking for all the retries, so this doesn't seem to be the right approach.

Regards,
Himansu      
Avatar
RankRankRankRank

Total Posts: 745

Joined 2012-09-14

PM

Hi Himansu,

Does your retry loop only call "sd_ant_acknowledge_message_tx" after receiving "EVENT_TRANSFER_TX_COMPLETED"?

It sounds like you may be calling "sd_ant_acknowledge_message_tx" after receiving "EVENT_TRANSFER_TX_START" but not waiting until "EVENT_TRANSFER_TX_COMPLETED", which is why you are seeing the "TRANSFER_IN_PROGRESS" error.      
Rank

Total Posts: 13

Joined 2017-04-12

PM

Hi Harrison,
Thanks,

Does your retry loop only call "sd_ant_acknowledge_message_tx" after receiving "EVENT_TRANSFER_TX_COMPLETED"?
Ans: We are use sd_ant_broadcast_message_tx(...) message. We do not use sd_ant_acknowledge_message_tx(...).

Second ,we are use burst message. For burst Message we are wait for EVENT_TRANSFER_TX_COMPLETED or EVENT_TRANSFER_TX_FAILED Event.
One more thing, we are use only one ANT Master Shared Channel for issue debug and also getting same error(NRF_ANT_ERROR_TRANSFER_IN_PROGRESS ). we send broadcast message when get EVENT_TX.

Regards,
Himansu