nRF5 SDK v11.0.0
This example requires one of the following SoftDevices:
S212, S332
Important: Before you run this example, make sure to program a SoftDevice .
The ANT Message Types reference demo demonstrates the three different ANT message types: Broadcast, Acknowledged, and Burst. Current selected message type can be changed by buttons. The PC application ANTware is used to test the functionality of the demo.
You can find the source code and project file of the example in the following folder:
<InstallFolder>\examples\ant\experimental\ant_message_types\master
Message Types Demo Topology
The example uses the following button and led assignment:
| Message type | Button | LED |
|---|---|---|
| Broadcast | BSP_BUTTON_0 | BSP_LED_0 |
| Acknowledged | BSP_BUTTON_1 | BSP_LED_1 |
| Burst | BSP_BUTTON_2 | BSP_LED_2 |
Testing the message types example using AntWare II
- Compile and program the message types example.
-
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\experimental\ant_message_types\master\ant_message_types_master_test.xml. Alternatively, you can configure the device channel manually:- Set the channel assignment to slave.
- Set the channel ID to "0, 2, 1".
- Keep the default for all other settings.
- Click the Auto-Open button. Observe that messages describing the received payload appear for each ANT message.