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:
- 1 development Board to run the reference code
- 1 ANT USB stick connected to the PC application ObservANT to view the debug messages
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
- Compile and program the debug demo example.
- 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.
- Open the PC application ObservANT
- Open a channel on ObservANT using the Channel ID: "0, 8, 1".
- Observe the debug messages being received by ObservANT. Pressing buttons on the IO board will have an effect on the debug values.
ObservANT
- 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.
- 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.