Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Sending advanced burst on nrf51 with one call?

Rank

Total Posts: 1

Joined 2013-10-18

PM

Hi,

I want to send an Advanced Burst message on nrf51 .

I have advanced burst configured to send 24byte packages.

sd_ant_burst_handler_request(CHANNEL_032burst_data1BURST_SEGMENT_START);
wait_for_burst_to_complete();
sd_ant_burst_handler_request(CHANNEL_032burst_data2BURST_SEGMENT_END);
wait_for_burst_to_complete(); 


However this seems really excessive. I can just send one advanced burst message with a data size 64.
So I would like to do something like:

sd_ant_burst_handler_request(CHANNEL_032burst_data1BURST_SEGMENT_START);
wait_for_burst_to_complete(); 


However the above approach fails. Seems like BURST_SEGMENT_END is absolutely necessary for success. If I send the message with BURST_SEGMENT_END only it fails as well.

How can avoid multiple calls (and multiple data structures)?
     
RankRankRankRank

Total Posts: 156

Joined 2013-01-07

PM

Stpn,

The original 51422 softdevice (version AXX1.06B00) requires at least 2 API calls, one with BURST_SEGMENT_START and BURST_SEGMENT_END to work correctly.

So the first code example you provided is the best solution for now.

On the next 422 softdevice release we will also allow one call for burst messages.

     
RankRankRankRank

Total Posts: 156

Joined 2013-01-07

PM

The latest soft device release by Nordic: s210_nrf51422_3.0.0-3.beta has a fix for this issue.