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, using the S210 SoftDevice v5.0.0 or later.
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.
The name of the example is
ant_scalable_tx_
SoftDevice
_
Board
, where
SoftDevice
is the SoftDevice that you are using and
Board
is the supported board. If you are not using the Keil Pack Installer, 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.
The name of the example is
ant_scalable_rx_
SoftDevice
_
Board
, where
SoftDevice
is the SoftDevice that you are using and
Board
is the supported board. If you are not using the Keil Pack Installer, 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
- Testing the Receiver using AntWare II
- Testing the Transmitter using AntWare II
Testing the Transmitter with the Receiver
- 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.
- 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
- Compile and program the Receiver application on a board.
- Run AntWare II.
-
Configure all channels:
- Set the channel assignment to master.
-
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 - Use the default values for all other configuration parameters.
- Open each channel to start transmission.
- Observe that the pattern of the LEDs on the board indicates the number of tracking channels.
Testing the Transmitter using AntWare II
- Compile and program the Transmitter application on a board.
- Run AntWare II.
-
Configure all channels:
- Set the channel assignment to slave.
-
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 - Use the default values for all other configuration parameters.
- Open each channel to start searching.
- Observe that the pattern of the LEDs on the board indicates the number of open transmitting channels.
- Observe that after pairing, the received messages on each of the 15 channels can be viewed in ANTware II.