This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to implement selecting one ANT+ master device pair if multiple master deice exist.

Hi,

Our device is slave device with LCD displaying.We need to implement the function as below:

Within range of our slave device, if multiple master device like combined bike speed and cadence senor or speed and distance sensor are found.

They will be displaying on our device to the user asking which device to pair with.

How to implement it.

May I get the related document or apply note even demo code? Thanks.

Now our project is developed base on nRF52832 SDK11.0.0,SD ANT_s332_nrf52_0.9.1.alpha.hex and example demo path: Nordic BLE\nRF5_SDK_11.0.0_89a8197\examples\ant\ant_plus\ant_bsc\bsc_rx\combined

Parents
  • I think you can use background scanning for this.

    We have an example in the SDK, see this.

    Dynastream also have a relevant app note, ANT Channel Search, available here.

  • a) If you don't use the radio for anything else, process the events quickly, and set the search waveform to ANT_WAVEFORM_FAST you should be able to find much more than 8 masters, but I would recommend testing this.

    b) Can't you just do it the same way? I would just open a new channel with the Channel ID that identifies the channel. You can use the extended message format to get the device number, device type and transmission type, see Section 7.1.1 in the ANT Message Protocol for more information.

Reply
  • a) If you don't use the radio for anything else, process the events quickly, and set the search waveform to ANT_WAVEFORM_FAST you should be able to find much more than 8 masters, but I would recommend testing this.

    b) Can't you just do it the same way? I would just open a new channel with the Channel ID that identifies the channel. You can use the extended message format to get the device number, device type and transmission type, see Section 7.1.1 in the ANT Message Protocol for more information.

Children
No Data
Related