Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Live ANT+ data (java/python)

Rank

Total Posts: 6

Joined 2016-03-01

PM

Hi There,

I'm new to ANT+ development.
I'm trying to create a desktop application to receive live data from ANT+ devices (Heartrate, Speed, Cadance, Power).

I prefer Java as language but python is also an option.

I found some API on github but those are outdated.
Can anyone help me with an example project or something like that?

Thank you,      
Avatar
RankRankRankRank

Total Posts: 745

Joined 2012-09-14

PM

Hi,

Most of the latest tools we offer directly for desktop development are written in "C" languages (C, C++, C#).

SimulANT+ uses IronPython to interface Python Scripts with the C# based Simulation Library. There's an application note on using the library in C# here.

There are a few open source projects out there, though the most active one, Golden Cheetah, is also written in C++.

While this library may be older, the ANT API doesn't really fundamentally change between versions, new features are just added.
https://github.com/jovial/JFormica

Mark Rages from Quarq also has a number of Python projects he's released over the years.

Cheers      
Rank

Total Posts: 6

Joined 2016-03-01

PM

Thx for your reply @Harrison, most Java code is written for android, do they work on desktop as well?      
Avatar
RankRankRankRank

Total Posts: 745

Joined 2012-09-14

PM

Those API's only work on Android based platforms.      
Rank

Total Posts: 1

Joined 2017-01-03

PM

Following up on this topic, I'm particularly interested in a python library that i can use with ubuntu to read live data off my ANT+ device (specifically a Garmin vivofit)

Are there any officially supported packages?      
Rank

Total Posts: 3

Joined 2012-12-09

PM

I used a fork of python-ant for my project, which is designed for a Raspberry Pi but works equally well on any Linux PC - source code is here if you're interested: https://github.com/dhague/vpower      
Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

Peter Gamma alias Yoyo2014

Great work, Darren Hague!      

Signature

Peter Gamma

Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

Peter Gamma alias Yoyo2014

For live ANT+ data, GoldenCheetah is a misery:

https://groups.google.com/forum/#!topic/golden-cheetah-users/Gn2fOxUqTFk

     

Signature

Peter Gamma

Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

Peter Gamma alias yoyo2014

For live-streaming of ANT+ sensor data to PC applications like Matlab, Python or other applications, the easiest solution is to modify the example "virtual power" for bicycle turbo trainers :

https://github.com/dhague/vpower

which runs on a Raspberry Pi, Linux and on a virtual machine running in Windows.

Is this not also a misery?
     

Signature

Peter Gamma

Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

Peter Gamma alias yoyo2014

An easy to use and contemporary windows 10 sdk developed by THIS IS ANT to build modern windows 10 applications would be great to fix this misery.

     

Signature

Peter Gamma

Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

Peter Gamma alias Yoyo2014

I wrote a list of solutions which are / where available for streaming sensor data to desktop applications:

https://www.eevblog.com/forum/cloud-computing/garmin-watch-connectiq-watch-iot-microsoft-azure-platform/msg2828380/#msg2828380
     

Signature

Peter Gamma