ANT Message Types

nRF5 SDK v12.2.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 example demonstrates the three different ANT message types: Broadcast, Acknowledged, and Burst. The currently selected message type can be changed by buttons. Use the PC application ANTware to test this example.

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

Page-1 s.389 s.390 Node A Node A Sheet.391 Sheet.392 Sheet.393 Terminal.394 ANTware ANTware Sheet.395 Sheet.396 Sheet.397 Sheet.398 Sheet.399 Sheet.400 Master Endpoint Master Endpoint Sheet.401 Slave Endpoint Slave Endpoint
Message Types example topology

This example uses the following assignment of buttons and LEDs:

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

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 ANT stack configuration .

  1. Compile and program the Message Types example.
  2. Run ANTware II. From the available devices, select your ANT PC dongle (for example, ANTUSB-m). Configure the device channel by loading the device profile configuration from the following file: <InstallFolder>\examples\ant\ant_message_types\master\ant_message_types_master_test.xml . Alternatively, you can configure the device channel manually:
    1. Set the channel assignment to slave.
    2. Set the channel ID to 0, 2, 1 .
    3. Keep the default values for all other settings.
  3. Click Auto-Open . Observe that messages describing the received payload appear for each ANT message.