nRF5 SDK v11.0.0
Experimental: Debug Demo
This example requires the following SoftDevice: S212

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

The purpose of the ANT Debug Demo is to show how to utilize ANT debug messages. Debug messages are specially formatted messages usually sent over a separate ANT channel which convey information about the device which may be useful in debugging. Debug messages are received by an application such as ObservANT which can decode, display and log the information. Refer to the ObservANT User’s Manual for more information about using debug messages.

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

This demo uses:

ant_debug_topology.png
ANT Debug Demo Topology

The ANT Debug Demo is essentially just the ANT IO Tx Demo with an additional channel for debug messages, so it can be used together with the ANT IO Rx demo if desired.

Testing the Debug Demo

  1. Compile and program the debug demo example.
  2. Copy the config.txt file included in the ant_debug project directory to the same directory where ObservANT is installed. This file is used by ObservANT to format the received debug fields.
  3. Open the PC application ObservANT
  4. Open a channel on ObservANT using the Channel ID: "0, 8, 1".
  5. Observe the debug messages being received by ObservANT. Pressing buttons on the IO board will have an effect on the debug values.
    ant_debug_observANT.png
    ObservANT
  6. Try setting a filter using ObservANT to change which debug fields are transmitted. This can be done by checking the boxes next to desired fields and clicking the Set Filter button.
  7. Try sending a custom debug command by sending an acknowledged message from ObservANT to the device. Use the “Send Acknowledged” box under the “Misc.” tab. Sending any message with the first byte set to 0x42 will signal the device to turn on all the LEDs and any other message will turn them all off.

Documentation feedback | Developer Zone | Updated