Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

How to handshake with my Garmin?

Rank

Total Posts: 3

Joined 2021-01-08

PM

I'm trying to use the Python OpenANT library (https://github.com/Tigge/openant) to access my ANT dongle which is plugged into the USB port (WINDOWS 10 PRO). My goal is to access my Garmin through it and get some data from it. However, I'm stuck at the very beginning trying to establish a contact with the ANT Node. My code is this:
from ant.easy.node import Node
node
=Node() 

Now I get this error line printed out for ever:
<class 'usb.core.USBError'>, (Noneb'libusb0-dll:err [_usb_reap_async] timeout error\n'

When my Garmin Agent is active, I get the error "ANT resource already in use" instead of the timeout, so I'm certain that my code is accessing the ANT dongle.. However, now (having closed the Garmin Agent) I have no idea about how to get rid of the timeout and how to establish a simple handshake with my Garmin device (Forerunner 310XT)..
     
RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

Cannot speak to openant issues.

With regards to your statements "My goal is to access my Garmin through it and get some data from it." and "how to establish a simple handshake with my Garmin device": The Forerunner 310XT does not support acting as a data source. Instead it is a display for each of the profiles listed at https://www.thisisant.com/directory/forerunner-310xt/      

Signature

Ian Haigh

Rank

Total Posts: 3

Joined 2021-01-08

PM

haighi - 18 January 2021 12:01 PM
The Forerunner 310XT does not support acting as a data source. Instead it is a display for each of the profiles listed at https://www.thisisant.com/directory/forerunner-310xt


Thanks for the reply! But hmm, if this model of Garmin cannot be a data source, how can the Garmin Agent extract data from it? I'd like to do the same with my program that the Garmin Agent does. Can I query the Garmin from a Python code and extract some information from it this way? Have anyone done something like that?      
RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

What you are talking about doing is an ANT-FS file transfer. This is much more complex than connecting to an ANT+ sensor.

https://github.com/Tigge/openant/blob/master/examples/antfs_list.py implements the first step of gathering the directory information from the device. The ANT-FS functionality for openant lives in https://github.com/Tigge/openant/tree/master/ant/fs This .is not an official ANT tool and is not supported by our team.

For details on how to complete ANT-FS transfers I suggest reading https://www.thisisant.com/resources/ant-fs-technical-specification/ You w.ill have to compare the processes documented there with openant to determine how to use openant, or reach out to the developers responsible for openant.

https://www.thisisant.com/resources/integrated-ant-fs-interface-control-document/ and https://www.thisisant.com/resources/ant-fs-reference-design-user-manual/ may also have some related info.      

Signature

Ian Haigh

Rank

Total Posts: 3

Joined 2021-01-08

PM

Thanks a lot! I tried this ANT-FS example and after some error correction I finally made a connection to my Garmin. This is huge! Now, I just have to figure out how it works exactly smile Thanks again!