I've been trying to get two ant+ sensor profiles working at the same time.
I'm working with the nrf52 DK, I'm on sdk version 15.3.0_59ac354.
Reproducible example here: https://github.com/tomeinc/nordic-ant-two-profile-issue-demo
I think it's an issue with channel configuration, and I suspect the fact that channel number is the same in both things I'm trying, but changing channel number even with only one profile enabled causes issues.
I'm not quite clear on what channel number even is, in sdk_config.h the text says "BSC_CHANNEL_NUM - Channel number assigned to BSC profile", but there is no channel number in the specification PDFs from thisisant.com
So I'm thinking it's something internal to how the ANT/ANT+ libraries handle it?
Where can I find documentation on that?
https://devzone.nordicsemi.com/f/nordic-q-a/8812/ant-multiple-channels/32340#32340
That seems to say that multiple ant+ profiles should just work?
The other issue I'm having is I can't figure out the syntax for how to call NRF_SDH_ANT_OBSERVERS. I can't figure out how to pass an array to a preprocessor macro.
I think I figured out what it *should* turn into, but I can't test it because of the issue with sd_ant_channel_assign.
Cheers,
Mark