Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register


FAQ: How to Enable ANT Serial Logging


Total Posts: 313

Joined 2011-09-12


For debugging or for reporting errors it is often useful to retrieve the logs of the ANT serial communication to investigate the contents and ordering of the ANT packets directly.

To enable serial logging, before you open your connection to the device:

requires a define and two function calls:*
#define DEBUG_FILE

---C++ if using DSIANTDevice---
requires calling member function:*
void DSIANTDevice::SetDebug(BOOL bDebugOn_, const char *pcDirectory_)

requires a single function call:
ANT_Common:: enableDebugLogs()

requires using an additional app to get the serial info output to logcat:
-Download the ANT Service Settings APK from the SDK (https://github.com/ant-wireless/ANT-Android-SDKs/tree/master/ANT_Android_SDK/Tools)
-Run the app and change the ‘All Logging’ setting to ‘Enabled’
(if you don’t want all the logging, then only enable the serial logging option)
-All the service logging and ANT serial messaging should now show in the logcat output

*Additionally, if you are building the libraries from source, you need to compile with the DEBUG_FILE defined. It is not defined by default in most code we release.


Dynastream Developer


Total Posts: 1

Joined 2018-06-09


To enable the ANT serial Logging, change the noise level for specific parts but do not do it for the whole ant scripts, then enable the ant -v and -debug so that the whole script does not change. After that make the ant with -q flag. Hope this will help or contact
Dell tech support      

Total Posts: 1

Joined 2018-08-30


Nice post! Thanks for sharing us!

порно - xxx      

Total Posts: 1

Joined 2018-11-03


Thanks for the information, it has been very helpful