nRF5 SDK v11.0.0
Channels
This example requires the following SoftDevice: S212

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

The scalable 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 project file of the example in the following folder: <InstallFolder>\examples\ant\ant_scalable\scalable_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 project file of the example in the following folder: <InstallFolder>\examples\ant\ant_scalable\scalable_rx

Testing

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.
  3. Configure all channels:
    1. Set the channel 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.
  4. Open each channel to start transmission.
  5. 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.
  3. Configure all channels:
    1. Set the channel 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.
  4. Open each channel to start searching.
  5. Observe that the pattern of the LEDs on the board indicates the number of open transmitting channels.
  6. Observe that after pairing, the received messages on each of the 15 channels can be viewed in ANTware II.

Documentation feedback | Developer Zone | Updated