Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

antFsProgessUpdateReceiver issue

Rank

Total Posts: 11

Joined 2014-06-18

PM

Hello,

I'm using watchPcc.requestDownloadNewActivities and watchPcc.requestDownloadAllActivities to get activities from my sportwatch.
I register a antFsProgessUpdateReceiver but the event TRANSPORT_DOWNLOADING is not always sent, sometimes I receive no event during transaction, sometimes all, sometimes a part only.
Otherwise activity are well transferred.
With your demo program, the same issue happens the progress bar doesn't move.

When event is sent, the values I receive are:
totalBytes=total bytes for all activities
transferredBytes=current bytes tranferred for current activity, it starts again from 0 for each activity (strange but manageable)

public void onNewAntFsProgressUpdate(AntFsState state,
long transferredBytes, long totalBytes) {
switch (state) {
case TRANSPORT_DOWNLOADING:
currentActivityTransfered = Long.valueOf(transferredBytes).intValue();
int total = Long.valueOf(totalBytes).intValue();
sendDownloadProgressMsg(currentTransfered + currentActivityTransfered, total);
break;
default:
//ignore
break;
}

Can you reproduce the issue on your side ?

Thanks.

PS:
I'm using the last version of SDK antpluginlib_3-0-0-RC1.jar.
My phone is an LG G2 with ant enabler and my watch is a Garmin Forunner 310 XT.


     
RankRankRankRank

Total Posts: 313

Joined 2011-09-12

PM

What version of the ANT+ Plugins Service are you using?

I remember a bug with the transfer progress that is fixed in the version now in the SDK: https://github.com/ant-wireless/ANT-Android-SDKs/tree/master/ANT+_Android_SDK/Services      

Signature

Dynastream Developer

Rank

Total Posts: 11

Joined 2014-06-18

PM

ShaneG - 21 July 2014 04:15 PM
What version of the ANT+ Plugins Service are you using?

I remember a bug with the transfer progress that is fixed in the version now in the SDK: https://github.com/ant-wireless/ANT-Android-SDKs/tree/master/ANT+_Android_SDK/Services


I'll test with Ant+ Plugin Service 3-0-0-RC1.      
Rank

Total Posts: 11

Joined 2014-06-18

PM

jey351 - 31 July 2014 07:48 AM

I'll test with Ant+ Plugin Service 3-0-0-RC1.


It's the same, I still don't receive upload progress.      
RankRankRankRank

Total Posts: 313

Joined 2011-09-12

PM

We can't reproduce the issue. Could you install the ANT Service Settings app and enable all logging and send us a copy of the logcat?

The service settings app can be downloaded from the SDK https://github.com/ant-wireless/ANT-Android-SDKs/blob/master/ANT_Android_SDK/Tools/Android_ANTServiceSettings_2-0-0.apk
     

Signature

Dynastream Developer

Rank

Total Posts: 11

Joined 2014-06-18

PM

Sorry for this late reply but I think I can provide you a usefull test.
There were 3 new activities on my watch, 2 tests activities (quick start/stop/reset without gps) and a real workout (running an hour).
The first two had download progress but not the third.
I attached the logcat.

     

File Attachments

RankRankRankRank

Total Posts: 313

Joined 2011-09-12

PM

I noticed this was never resolved, were you still having this problem?      

Signature

Dynastream Developer

Rank

Total Posts: 11

Joined 2014-06-18

PM

The issue was not resolved, so I provided you as you asked a logcat where the issue happens.
In this logcat you will see a transfers of 2 activities with download progress and 1 activity with no download progress.
I think the issue can be reproduced with a big/real workout.

     
Rank

Total Posts: 11

Joined 2014-06-18

PM

Any news about your analysis ?      
RankRankRankRank

Total Posts: 313

Joined 2011-09-12

PM

First of all I apologize for letting this fall off my radar a second time, thank you for the reminder.

I finally looked into this and have determined the cause. It will be fixed in the next plugins release. There was an issue tracking the progress on ANTFS downloads that consist of multiple downloads (such as the 310 watch which forces downloading in 512 bytes). We limit progress updates to ~1% the file size to avoid too frequent updates, but when the file chunks are less then 1% of the size of the file the updates were never being triggered.

Thanks for reporting this and providing the logs to help out. We really appreciate it. And sorry again that the responses were so untimely!      

Signature

Dynastream Developer

Rank

Total Posts: 11

Joined 2014-06-18

PM

No problem, thank you for your support.      
Rank

Total Posts: 2

Joined 2013-04-07

PM

Bonjour,
I have the same with my Forrunner 610 and the Ant+ Plugins Service is 3.1.0.
what can i do?
Thanks.
Cordialement.
J.D.      
RankRankRankRank

Total Posts: 313

Joined 2011-09-12

PM

The update last week on the Play Store resolves this download progress error.      

Signature

Dynastream Developer

Rank

Total Posts: 2

Joined 2013-04-07

PM

Bonjour,
Thanks, it work's.
Cordialement.
J. D.