Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

ANT+/ Java sur Raspberry

Rank

Total Posts: 2

Joined 2019-01-24

PM

Bonjour,
Pour un projet j'ai besoin de connecter plusieurs capteurs ANT+ à un Raspberry, tout cela en Java. Auriez-vous des pistes ou des liens utiles pour me documenter, j'ai du mal à faire le tri entre toutes les informations que j'ai pu récupérer sur l'ANT+.
     
RankRank

Total Posts: 42

Joined 2020-01-26

PM

En fait, tu as résolu ton problème? Ça pourrait m'intéresser aussi      
Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

pour le Rasperri Pi, il dispose déjà d'une solution MQQT.

https://www.thisisant.com/forum/viewthread/7360/

malheureusement ce n'est pas java.

     

Signature

Peter Gamma

Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

Avez-vous pensé à utiliser un Linux Pinephone au lieu d'un Rasperri PI?

https://www.thisisant.com/forum/viewthread/7362/      

Signature

Peter Gamma

RankRank

Total Posts: 42

Joined 2020-01-26

PM

No, I have not yet looked into the Linux Pinephone but what would be the advantage in using a pinephone??
(I also quote "A pinephone as the most comfortable way to get real-time data from a ANT+ sensor. How painful is this :-( .").
     
Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

could become a new ANT+ standard device:

- it is designed for mobile use
- it already has a big screen
- it is robust
- it has standard batteries which can be replaced by bigger ones
- new Linux images can be designed in the Pinephone Community escpecially for ANT+
- it is also interesting for bikers and runners, not only for home users
- therefore, when you choose a Pinephone, the community of developers is bigger.      

Signature

Peter Gamma

Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

And last but not least it is a real Linux computer in your pocket.      

Signature

Peter Gamma

RankRank

Total Posts: 42

Joined 2020-01-26

PM

Sounds like you are making some advertisement for the pinephone. Does it also include an ant+ implementation under linux?      
Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

I m trrying to promote the Pinephone a bit, because it is to little known to this date. It is also painful to have to promote such an option. It would be easier to have for instance an IpBike android application with ANT live stream support, but unfortunately, IpBike does not support live streaming to this date.

Pine also produces Raspberry Pi-like single board computers. Programs which run under Rasperri Pi should also run on Pinephone, but for me personally, the Pinephone is more attractive, since it is a real Linux computer which has not so many limitations as the Rasperri Pi.

There are no special ant+ implementation under linux for the Pinephone to this date. Buit It should be easy to build one dervied on from a Rasperri PI inplementation. And it should be mor stable than an android ant+ implementation.

The Pinephone is only available to buy since a short time, it is quite new, and sold as a product for developers. But reviewers say in a year or so it could completely repace an android phone, and has Linux computer functionality at the same price as an android phone.

For a new ANT+ developements I would choose a Pinephone instead of a Rasperri Pi, if your budget allows.      

Signature

Peter Gamma

RankRank

Total Posts: 42

Joined 2020-01-26

PM

"Built It should be easy to build one dervied on from a Rasperri PI inplementation."
that is the biggest problem, I haven't found any good Ant+ implementation for linux yet. The largest amount of packages allow you to connect to the first heart rate monitor found, but very few packages propose the full functionality of ant+ (e.g. enable extended messages, back ground search, and so on). If you have found one with a good api, please let me know (https://github.com/asantacreuTwoNav/python-ant is interesting, but not available under pyhton3)      
Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

Darren Hague s virtual Power should also run under Linux

https://www.thisisant.com/forum/viewthread/6665/

it can be modified for instance to show heart rate instead of power.

https://github.com/dhague/vpower

Peter Gamma      

Signature

Peter Gamma

RankRank

Total Posts: 42

Joined 2020-01-26

PM

Please take a look at the corresponding question ("good implementation") and your recommended package before answering every topic in this forum. The vpower package doesn't implement ant+ at all (rather import another package), nor does it even enable extended messages...      
Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

ANT+ Virtual Power Meter does not implement ANT+?

https://github.com/dhague/vpower      

Signature

Peter Gamma

RankRank

Total Posts: 42

Joined 2020-01-26

PM

No, it calls an implementation of Ant+ (I can't figure out which), but doesn't implement the Ant+ standard. As you can read in one of the first lines of the file vpower.py ( https://github.com/dhague/vpower/blob/master/vpower.py ):
"from ant.core import driver". This means there has to be a package already installed called core within a folder called ant. The class driver of this file is not provided in the package vpower, I suppose it corresponds to either python-ant or openant. vpower doesn't implement Ant+ from scratch, it only calls and uses a certain ant+-implementation under python (unfortunately it is not written which)      
Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

Maybe Darren Hague, the developer of the ANT+ Virtual Power Meter, can answer your question:

https://github.com/dhague

.(JavaScript must be enabled to view this email address)

Peter Gamma      

Signature

Peter Gamma

RankRank

Total Posts: 42

Joined 2020-01-26

PM

I really like your enthusiasm, but you don't really provide any helpful answer or solution, 12 posts without getting further