You are here: Forum Home → ANT Developers Forums → ANT in Mobile Phones → Thread
Hi,
Have you taken a look at the ANT Android API? The sample app in there open's master/slave channels which can communicate with one another.
I would also recommend reading the ANT Message Protocol and Usage doc to gain an understanding of how ANT works, but you'll need to write your own code to send text data over 8 byte packets (you'll also likely need to use bytes to indicate pages, new events, etc similar to ANT+ Device Profiles).
Hi,
Sorry, at this time there is no other sample code available for the ANT Channel API.
Some tips...
The Android API is modeled after the PC API, the C# example in the ANT Windows Library Package is much simpler, but obviously is not directly applicable to the Java code.
I'd also take a look at the ANT+ Presentation from DroidCon Berlin 2013. In particular slide 37 and onwards provides a high level summary of how to use the ANT Android API.
In terms of device search I would play with ANTWare II. In particular once you open a slave channel, it automatically looks for a master channel with the same Channel ID parameters which you configured.
Best regards