Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT+ Forums → ANT-FS → Thread

   

Download all Activities

Rank

Total Posts: 4

Joined 2013-04-04

PM

Hi,
New here and trying to get to grips with the Ant+ Android API.
I've got the Demo working with the Bridging, and have managed to get it to read my heart rate in the Android Emulator (was quite happy when I got all that running!).

Now what I would like to do is be able to download all the activity files on a device - like a Garmin 310XT or the like.
I'm just not sure how to start with this. I've been going through the demo app and am trying to understand that but it's a slow process, so any pointers in the right direction here would be great.

Thanks,

Jeremy      
Avatar
RankRankRankRank

Total Posts: 296

Joined 0

PM

JMalherbe - 05 April 2013 03:17 AM
Hi,
New here and trying to get to grips with the Ant+ Android API.
I've got the Demo working with the Bridging, and have managed to get it to read my heart rate in the Android Emulator (was quite happy when I got all that running!).

Now what I would like to do is be able to download all the activity files on a device - like a Garmin 310XT or the like.
I'm just not sure how to start with this. I've been going through the demo app and am trying to understand that but it's a slow process, so any pointers in the right direction here would be great.

Thanks,

Jeremy

This requires ANT-FS (ANT file system). So you better familiarize yourself with the ANT-FS related materials on the download page. A good point to start, just to see it working, is the ANT-FS simulator pack.

Cheers,
OMB      
Rank

Total Posts: 4

Joined 2013-04-04

PM

Hi old_man_biking,

Thanks for the reply. I have managed to get the Android app (found in this thread - http://www.thisisant.com/forum/viewthread/2484/ ) to link to my 310XT and interact. Not downloading files or anything like that just yet, but getting some interactivity going.

I have another question now. It may be silly, or I just need somewhere to be pointed to, to read more.
I've had to change some settings to be specific to the 310XT. How would I go about coding the app to be generic, so that it would search for any type of device that is Ant+ enabled that could potentially download files?
Is this something where I have to code in all the parameters for a set of devices I'm willing to support?

This doesn't seem ideal as new devices would need to be added to the app as they are released. Or is this just the way it is?

Thanks.
     
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

If you are only intending to download data from fitness watches, you can wild card the beacon parameters so that you are not specifically looking for a certain model from a specific manufacturer. We would highly recommend having a look at the ANT-FS specification as well as using the ANT-FS tools to see what the different parameters mean.

If you intend to download from other ANT-FS enabled devices, such as blood pressure monitors, that may be more challenging, as they operate on the ANT+ network rather than the ANT-FS network.      
Rank

Total Posts: 4

Joined 2013-04-04

PM

alejandra - 10 April 2013 10:44 AM
If you are only intending to download data from fitness watches, you can wild card the beacon parameters so that you are not specifically looking for a certain model from a specific manufacturer. We would highly recommend having a look at the ANT-FS specification as well as using the ANT-FS tools to see what the different parameters mean.

If you intend to download from other ANT-FS enabled devices, such as blood pressure monitors, that may be more challenging, as they operate on the ANT-FS network rather than the ANT+ network.


Thanks Alejandra! Great tip - seems silly I didn't spot that. The device sends all the information it needs (I think) to use to connect. So got that sorted now!
Thanks...now to work on the next bits.
Thanks!
     
Rank

Total Posts: 4

Joined 2013-04-04

PM

Hi, I've got to a point where I am able to download the .fit files from the 310XT device to the Android device.
However, I have noticed that in some situations the .fit file is not complete.
I download the same file using the ANT-FS PC HOST software and it works correctly there.

I know this is a very vague question, but what should I be looking for that would cause this issue?
In my logs I get the following
EVENT_TRANSFER_TX_FAILED
Tx error sending download command.
Not receiving packets.
EVENT_TRANSFER_TX_FAILED
Tx timeout sending download command.

This looks like it could be similar to this thread - but I'm not sure as I'm still learning here.

Any help would be great.

Thanks!
     
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

From your description, it seems that the implementation you are using may not fully support resuming file transfers (i.e., it may not be correctly handling burst transfer failures).

Testing against the ANT-FS PC client will allow you to generate debug logs (DeviceX.txt, as well as ao_debug_antfs...) which may provide you with more clues regarding this issue.