nRF5 SDK v17.1.0
ANT Multi Channels
This example requires the following SoftDevice: S212

Important: Before you run this example, make sure to program the SoftDevice.

The Multi Channels example shows how to set up and enable up to 15 ANT channels on one board.

The example consists of a Transmitter application and a Receiver application.

Transmitter

The Transmitter application creates the defined number of master channels. The pattern of the LEDs indicates the number of open transmitting broadcast channels. For example, if four channels are transmitting, the LED pattern is 0100.

You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\ant\ant_multi_channels\tx

Receiver

The Receiver application creates the defined number of slave channels. The pattern of the LEDs indicates the number of tracking channels. For example, if four channels are tracking, the LED pattern is 0100.

You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\ant\ant_multi_channels\rx

Testing

Note: You can use a custom channel or encryption when running any of the ANT examples. When adding a new channel or encryption, remember to update SoftDevice ANT event handler configuration.

You can test the Encrypted Channels example in different ways:

Testing the Transmitter with the Receiver

  1. Compile and program the Transmitter application on one board. Observe that the LED pattern on the board indicates the number of open transmitting broadcast channels.
  2. Compile and program the Receiver application on another board. Observe that the LED pattern on the board indicates the number of tracking channels.

Testing the Receiver using ANTware II

  1. Compile and program the Receiver application on a board.
  2. Run ANTware II. Select your ANT PC dongle (for example, ANTUSB-m) from the available devices. Configure the device channel by loading the device profile configuration from the following file: <InstallFolder>\examples\ant\ant_multi_channels\rx\ant_multi_channels_rx_test.xml. Alternatively, you can configure the device channels manually:
    1. Set the channels assignment to master.
    2. Set the channel ID for each channel according to the following table:
      Parameter Value
      Device number Channel number + 1
      Device type 2
      Transmission type 1
    3. Use the default values for all other configuration parameters.
  3. Open each channel to start transmission.
  4. Observe that the pattern of the LEDs on the board indicates the number of tracking channels.

Testing the Transmitter using ANTware II

  1. Compile and program the Transmitter application on a board.
  2. Run ANTware II. Select your ANT PC dongle (for example, ANTUSB-m) from the available devices. Configure the device channel by loading the device profile configuration from the following file: <InstallFolder>\examples\ant\ant_multi_channels\tx\ant_multi_channels_tx_test.xml. Alternatively, you can configure the device channels manually:
    1. Set the channels assignment to slave.
    2. Set the channel ID for each channel according to the following table:
      Parameter Value
      Device number Channel number + 1
      Device type 2
      Transmission type 1
    3. Use the default values for all other configuration parameters.
  3. Open each channel to start searching.
  4. Observe that the pattern of the LEDs on the board indicates the number of open transmitting channels.
  5. Observe that after pairing, the received messages on each of the 15 channels can be viewed in ANTware II.

Documentation feedback | Developer Zone | Subscribe | Updated