Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Requirements to setup multiple ANT+ channels

Hi,

I am trying to alter ANT/BLE relay example to work with multiple ANT+ channels (HRM and BSC), but the program resets after ant_xxx_disp_init() step for the second channel. First channel always initializes fine. 

I've analyzed Multiple channel example in the SDK, but I see no specific steps associated with _multi channel_  except assigning different channel number for each channel.

ant_channel_config_t channel_config =
{
.channel_number = i,
.channel_type = CHANNEL_TYPE_SLAVE,
.ext_assign = 0x00,
.rf_freq = RF_FREQ,
.transmission_type = CHAN_ID_TRANS_TYPE,
.device_type = CHAN_ID_DEV_TYPE,
.device_number = i + 1,
.channel_period = CHAN_PERIOD,
.network_number = ANT_NETWORK_NUM,
};

So, I am assigning 0 to HRM channel, and 1 for BSC channel

I've also altered sdk_config.h to include:

#define ANT_CONFIG_TOTAL_CHANNELS_ALLOCATED 5

#define NRF_SDH_ANT_TOTAL_CHANNELS_ALLOCATED 5

But it still doesn't work. Is there something I am missing?

Is ant_search_init(&ant_search_config) needed to work with multiple channels? 

Parents Reply Children
No Data
Related