Dear Members,
Is it possible to combine HRM and Speed cadence on ANT+ example ?
How to give to different channel at once ? Any examples ?
Thanks
Dear Members,
Is it possible to combine HRM and Speed cadence on ANT+ example ?
How to give to different channel at once ? Any examples ?
Thanks
I can't find any examples no. So you likely need to increments NRF_SDH_ANT_TOTAL_CHANNELS_ALLOCATED in sdk_config.h to support more than 1 channel.
Also, looking at ant_plus\ant_sdm as example: I can notice that SDM_SENS_CHANNEL_CONFIG_DEF() setup the channel number to be SDM_CHANNEL_NUM, this means that all communication for the SDM will occur with ANT channel SDM_CHANNEL_NUM, which is set to 0 in sdk_config. So any new ANT channel used (ANT or ANT+) should increment this value to 1 when calling ant_channel_init().
Also, check out this reply:
https://devzone.nordicsemi.com/f/nordic-q-a/47975/two-ant-profiles
I can't find any examples no. So you likely need to increments NRF_SDH_ANT_TOTAL_CHANNELS_ALLOCATED in sdk_config.h to support more than 1 channel.
Also, looking at ant_plus\ant_sdm as example: I can notice that SDM_SENS_CHANNEL_CONFIG_DEF() setup the channel number to be SDM_CHANNEL_NUM, this means that all communication for the SDM will occur with ANT channel SDM_CHANNEL_NUM, which is set to 0 in sdk_config. So any new ANT channel used (ANT or ANT+) should increment this value to 1 when calling ant_channel_init().
Also, check out this reply:
https://devzone.nordicsemi.com/f/nordic-q-a/47975/two-ant-profiles
Hi Kenneth, thanks for the reply, I will test and keep posted.
I saw at hrm_rx sdk_config.h
// <o> NRF_SDH_ANT_TOTAL_CHANNELS_ALLOCATED - Allocated ANT channels.
#ifndef NRF_SDH_ANT_TOTAL_CHANNELS_ALLOCATED
#define NRF_SDH_ANT_TOTAL_CHANNELS_ALLOCATED 4
#endif
That's what you're talking about ?
It's working fine for bsc_rx with Garmin GSC10 and
hrm_rx with my HRM, but they are in separate code..
Thanks
Also see my comment on incrementing ANT channels, e.g. make sure all ANT channels you want to configure and use have a unique channel, e.g. incrementing something like:
SDM_CHANNEL_NUM 0
HRM_CHANNEL_NUM 1
BSC_CHANNEL_NUM 2