yashsingh1/xdaforums huggingface dataset:
[Other SmartWatches] no-IT-guy:
so after many years we are finally leaving our motoactvs and I'm trying to take our workouts with us, before I bury them.

I managed to root every device,install and use the exporter and switch back to USB-mode to get the files. Thankyou for keeping the files online!!!!!! :)

Exporting to Google oder Dropbox doesn't work for me (white page), but that's ok. The export to sd-card works.

My problem:

One device shows 224 workouts, but the list of exportable files only counts back to 179.

Does anyone know what that means?

Any chance to export the first 178 workouts?

I would appreciate any idea!

Especially because we missed to pull our data down from the motoactv-portal :silly:

EDIT: I only rooted the devices, I didn't mess with custom roms. I dont know if that would change anything - on another device I was able to export all 80 out of 80 workouts.
[Other SmartWatches] two_wheels:
Bit of a problem....

Thanks so much for your work on this!!!! I did two workouts today, one imported into Sporttracks just fine, but the other gives me the error:

Unexpected end of file while parsing Name has occured. Line 48642, position 10.

I have attached the offending file, and if you could take a look I would be forever grateful!!! BTW the file is from a bike ride, using heart rate and a power meter.
[Other SmartWatches] superdave:
The file is definitely incomplete. Did you get a force close when it exported? Do you have the manual exporter, if so can you try and do a manual export on 30. If you didn't get a force close can you try disconnecting the motoactv, reconnecting and copying the file again. Without force closing the app shouldn't just stop there. The last thing it always does is write the version.

Its nice to see some bike data. It looks like I have an issue picking up the sport type though. It has it listed as running and for biking those runcadence values should be named cadence. Ill add that to the bug list.

Thanks,

Dave
[Other SmartWatches] two_wheels:
I did the manual export and this time it worked. I did not get a force close after the workout, at least not that I remember. Two things I noticed, one is that as you mentioned, it tagged the workout as Running, but more importantly for me, there is no Power data that gets imported into Sporttracks. I've attached the "complete" file if you'd like to have a look. Thanks again!!!!
[Other SmartWatches] superdave:
Thanks. I'll add power to the next release.
[Other SmartWatches] almeriarunner:
Thanks

Thanks for all the suggestions as to how to stop/start/automate adb.

I ended up using the following:

adb shell am start -a com.android.settings.APPLIC​ATION_DEVELOPMENT_SETTINGS

and then unchecked "debugging" on the motoactv display.

y voila.. no turning on or off or batching

:victory:

What do you think? Can you foresee any problems?
[Other SmartWatches] stoudamire:
The only "problem" is that you can not use adb without flashing the rom again.

For instance, you cannot uninstall the app if a new version becomes available. (Note: If you have another launcher installed and are able to access the launcher, this will be still possible.)

BTW, another possibility to transfer the TCX-files is to create a FTP connection on the MotoACTV and integrate it into the windows explorer. Then you can extract the files wirelessly. However, you need a second launcher to realise that. If someone is interested I can explain the necessary steps in detail.

---------- Post added at 03:36 PM ---------- Previous post was at 03:22 PM ----------

@Superdave: Thanks for your work. This app is the first real reason to root the MotoACTV if you are an ambitious runner and only use it for working out.

So far, I´ve done four workouts which all were converted perfectly into TCX.

Nevertheless, I have a little suggestions regarding interval workouts. Is it possible to save the intervals as laps? For a usual run, the current setup is perfect, but if I do a interval workout I´m more interested in the several intervals instead of the lap times (autolap function is enabled). For instance, I did a interval workout yesterday. 1.5 km warmup, 5x 2km interval with 500m recovery between the intervals and 1.5km cool down. When uploaded to other sites than the MotoACTV portal, I can only see the "autolaps".

I´m also interested in other opinions. So if someone thinks this idea makes no sense just bring it forward.
[Other SmartWatches] almeriarunner:
and then? Do I have to restart it again? (sorry for being so dense!)
[Other SmartWatches] stoudamire:
Unfortunately, I do not understand your question. Do you refer to using adb again? Then the restart will do the trick.
[Other SmartWatches] nochancenine:
This app and service work great. Thanks so much for what you have done.

I was wondering could there be any possible way to add some configuration option to the service to enable saving the TCX files automatically to a folder on the sdcard?

My thought was to get the TCX files to the PC by using an app like DropSync that can synchronize a folder on the sdcard to a Dropbox account. Do you think that could work on the Motoactv to automatically sync the TCX files as they are created?

Thanks again.
[Other SmartWatches] rinorman:
unschooled needs help!

For those of us having little knowledge of rooting and android black magic, could someone either post or direct me to a step be step of how to incorporate the TCX exporter into the MOTOACTV? I love the device but need something other than the balky Moto portal to get my workout data into Strava.

Many thanks,
[Other SmartWatches] stoudamire:
1. Setting up ADB on your PC: http://xdaforums.com/showthread.php?t=1590800

2. Rooting the MotoACTV: http://xdaforums.com/showthread.php?t=1534073

3. Installing the TCX exporter: Just follow the instructions here.
[Other SmartWatches] rinorman:
Many thanks!
[Other SmartWatches] two_wheels:
Dave, let me know if you build a version that includes the bike power numbers, I would love to try that out, thanks!!!!
[Other SmartWatches] seveng:
I did a ride this morning that pulled HRM, speed and cadence in to Strava. For some reason it exported as running, but Strava's import lets you tweak that during the import.
[Other SmartWatches] Claj:
Thank u
[Other SmartWatches] superdave:
Sorry was on vacation this week, but, back at it now. I should have a version up tonight that adds power, steps and corrects the sport type bug.

,Dave
[Other SmartWatches] superdave:
Added new version with the 2 apps combined into one and added power. Please uninstall both prior apps before installing. Still working on steps, I am trying to find a sample tcx with it in there. If anyone has one please post it .

Thanks,

Dave
[Other SmartWatches] two_wheels:
Sweet!!! I am all installed now and will have to try out the new build. Thanks!!!

Here's a tcx file with run cadence, does that help?
[Other SmartWatches] stoudamire:
@Superdave: Have you seen this post? What do you think about it?
[Other SmartWatches] superdave:
stoudamire,

Sorry I missed that post the first time. How do intervals work, have you looked at the activity.db to see how they are stored. How are they shown on the portal?

Thanks,

Dave
[Other SmartWatches] two_wheels:
Did my first bike ride with the new version this morning, thanks for adding power, I have power and cadence numbers now from the power meter, well done superdave!

---------- Post added at 12:49 PM ---------- Previous post was at 12:43 PM ----------

Oh but one more thing (there's always a 'but')..... the power numbers are different from what I am getting from downloading the .csv from the Motoactv site. Avg power is showing as 186 on Motoactv's site and through their .csv, but the .tcx file shows it as almost 194 watts when imported into SportTracks. I have power data smoothing turned off in Sporttracks.. Any idea why they would be different? Thanks.
[Other SmartWatches] superdave:
That is odd. Is the data from a route your wouldn't mind posting? The TCX and the CSV would help. I use the duration of a lap to determine which trackpoints apply to a lap. Its possible I am missing a trackpoint. Comparing the csv and the tcx should tell us.
[Other SmartWatches] two_wheels:
The .csv (exported from Motoactv) and the .tcx from the same ride are attached..... Thanks!!!
[Other SmartWatches] superdave:
Thanks that helps.

It appears the portal is smoothing the data to every 4 meters. That is what is throwing off the averages. The data from the watch and what is going into the tcx is not smoothed at all. When you export the data from the portal your getting that same smoothed data that they use. This is the reason for the discrepancies in the averages. There smoothing/estimating all the data points.

,Dave
[Other SmartWatches] stoudamire:
No reason to apologise. I´m very grateful for your work.

You can set-up the intervals (and normal workouts) on the MotoACTV portal under "Planning". Then you have to do a manual sync in the wireless settings. After syncing, the planned intervals/workouts are shown under "workout" -> "run" -> "outdoors" -> "planned".

I attached a screenshot which shows how intervals are shown on the MotoACTV portal.

I´m not sure but I guess the corresponding data is stored under "workout_sub_activity" in the activity.db.
[Other SmartWatches] superdave:
Yeah workout_sub_activity would be the equivalent of lap details for an interval workout. There appears to be a corresponding entry for each interval, shouldn't be to much to check for a workout activity id in this table and if its there use it instead of laps details.
[Other SmartWatches] superdave:
Version 1.7 posted

Added steps to lap details

Uses workout sub activity (intervals) if available for lap details.

stoudamire,

Please let me know how this works, I only had a interval setup that used time for the splits to test. Ill try to get one in with distance if the rain today holds off.
[Other SmartWatches] stoudamire:
Wow, you are unbelievable. I´m going to test it tomorrow. Thanks a lot.

I would be happy to send you a small amount via paypal if you send me your adress via PM.

Your app saves me a huge amount of time and made the MotoACTV one of the best GPS watches on the market. :good:
[Other SmartWatches] superdave:
Your welcome, there is donate link next to my username. Its not necessary, but, very much appreciated.

,Dave
[Other SmartWatches] jmcourir:
Please help...

Please help,

I have tried to update to 1.7 and now having this error.... what should I do?

JmCourir,
[Other SmartWatches] superdave:
Hey JmCourir, it looks like your trying to install the settings.apk. That cannot be installed through adb install. Maybe you download the wrong file?

Thanks,

Dave
[Other SmartWatches] jmcourir:
Hi Dave,

Thanks for replying,

I was too much excited about steps version 1.7 hehe.

I just did a run test and steps are at the end of the file. Very nice! Thank you very much for that 1.7 version.

:good::good:

JmCourir

---------- Post added at 10:45 PM ---------- Previous post was at 10:40 PM ----------

Hi Dave,

I just sent you a little DONATION for your good work !!! :victory:

WELL DONE!!!

Have a nice day!

JmCourir
[Other SmartWatches] superdave:
Glad its working for you JmCourir. Thanks for the donation!
[Other SmartWatches] pocketedgejr:
I was running 1.5 when I noticed an issue - had it happen twice so I came here and noticed 1.7 is out so I upgraded, then foolishly didn't reproduce the circumstances in my fatigued state.

Basically what happened was I didn't completely close out a workout (paused but did not end, then end again in the summary) and plugged it into the USB port. Closing out the workout when the device is plugged in either didnt trigger 1.5 or 1.5 failed to work properly.

The 1st time I had the motoactv software setup to autosync to motoactv.com and lost the workout due to this. I removed my wifi setup and turned the software sync off of auto.

The 2nd time I didn't lose the workout, but I had to manually export it.

My last run was away from home so I had time to remember to fully close out the workout vs coming in from the run and plugging it in right away.

I'll attempt to reproduce in a day or two when I go back out, but I figured I would throw this out there to see if anyone else had it happened or something jumps out in the code.
[Other SmartWatches] superdave:
pocketedgejr,

The app listens for com.motorola.android.intent.action.WORKOUT_COMPLETED which is set when the end workout button is pressed. I have tested hitting this button with USB connected in adb mode and it works fine. I'll do some testing with it when adb is not running. When you say you lost your workout do you mean the motoactv sync deleted the non finished workout?

Thanks,

Dave
[Other SmartWatches] memtd:
Run Cadence

superdave,

First of all thank you for this program. It makes the motoactv so much more useful!

I am not sure how the watch tracks indoor vs. outdoor running. When running "outdoors" I use both the GPS and a foot pod. Motorola does not show run cadence on their website and the tcx export does not either. Are they not recording this metric when running "outdoors"?

Thanks,

Matt
[Other SmartWatches] pocketedgejr:
Yes. This is just a guess but I would assume that the workout looks (for all intents and purposes) finished in the DB and there just wasn't a signal thrown until I click a frowny face and end. I believe it was the USB sync that did it.
[Other SmartWatches] pocketedgejr:
Ok, so I went out and managed to do it "correctly" this time and the results are the same.

Pause workout, go to computer and plug into USB, remember I have to end workout and go through that process.

Hit import on SportsTracks and it pops up to the F: drive that is the motoactv. Workout file from the 9th is visible but nothing from the 11th.

Now:

I tried to launch the manual exporter just now (I have launched it in the past) and I'm getting a force quit error

"The application settings (process com.android.settings) has stopped unexpectedly. Please try again."

I just rebooted (held button until I could select power down on screen) and its still doing that. Being plugged in seems to be the issue. I tried launching it with it plugged in with adb on and off with no luck. Unplug the USB cord and its just fine.

I wonder if the Motoactv software isn't part of the problem. If the software is up (saying please plug in a device) when adb is active it seems to interfere (I can't adb at all, it says device not found I have to kill the software then unplug/replug the device). I don't really use it anymore except for some manual syncs with the website so I can browse some workout results on lunch.

Anyways. now that the manual exporter launches I exported the workout without issue and can import it now.

I'm running Windows 7, whatever kernel the easy rooter kit uses on a 8gig device. I have the latest Motocast installed (what I believe to be the source of the issue)
[Other SmartWatches] stoudamire:
It looks like you have USB debugging disabled. Consequently, the app cannot work because the internal sd card is always mounted via USB when you plugin your MotoACTV. As the GPX files are written on the internal SD card, you get the error message because the internal sd card is not accessible.

As superdave already wrote, just push the end button before you connect the device via USB (is there a reason why you have not done that before?). If you want ADB access again, you have to reinstall the ROM.

---------- Post added at 10:58 AM ---------- Previous post was at 10:45 AM ----------

@Superdave: The change for interval workouts works perfectly. However, I have another (really small) request. Could you change the setup of the output filenames that it always includes double figures ("workout_XX.tcx")? Currently, the first workout is saved as "workout_1.txc". However, I would prefer if it is saved as "workout_01.txc". It helps because the files are usually sorted alphabetically within apps (i.e. Dropbox) and then the file at the bottom will always be the last workout. I really hope you do understand me. :D
[Other SmartWatches] memtd:
Maybe using a datestamp and activity type for filename might be better? It won't be long before you go past 100 activities and need another digit.

YYYY-MM-DD_hh_mm.tcx

I'm not sure about activity type. might make the names too long and not really be that useful.
[Other SmartWatches] cx99:
I scripted a little automated TCX/GPX/KML Exporter a while ago. Not as smooth as this and it depends on the Motoactv.com portal but it works.

http://xdaforums.com/showthread.php?p=31468454
[Other SmartWatches] stoudamire:
That's not a bad idea either.

---------- Post added at 08:50 PM ---------- Previous post was at 08:37 PM ----------

Then USB debugging is enabled. In this case, Motocast should not start when you plugin your device unless you type in the command "adb shell stop adbd" which stops the adb server to return the device to normal UMS mode. If you restart your MotoACTV, adb can be used again.

Nevertheless, the app should work as long as you end your workouts before plugging in your MotoACTV.
[Other SmartWatches] pocketedgejr:
I'm not sure why you're replying, I know all these things - most of them are rewordings of things I've already said. As I clearly stated in my initial post; I understand much of the why but posted it in case there was an easy fix for what is a minor issue.
[Other SmartWatches] titusj:
Question about installation

The instructions say to install sd_csv.apk, but I don't see that file attached to the original post. I thought perhaps it got rolled into motoactiv_export.apk, but when I installed that file and tried an export, I got a force close. I suspect that was due to the missing sd_csv. I searched but can't seem to find it anywhere. Can someone tell me whether I need it and if so where I can get it?

Thanks a bunch.

Jason
[Other SmartWatches] unclemonkey77:
Force Close

Hi, I get a force close every time the app tries to run automatically or i try to run it manually. Looked through the thread and couldn't see anyone else having the issue. Any information I could provide that might be of help in diagnosing the issue? Thanks a bunch!
[Other SmartWatches] stoudamire:
Based on your posts, it was not clear to me if you know all the details. For instance, you have not replied if you stopped adb shell in order to enable the Motocast sync. Therefore, I wrote you all the details which, in my opinion, is the best way to learn new stuff. Many people here do not know the "basics". I would still describe myself as a noob.

---------- Post added at 10:16 AM ---------- Previous post was at 10:11 AM ----------

The sd_csv.apk is not necessary. As you already assumed, it has been merged with the motoactive_export.apk.

Have you tried to reproduce this issue after a restart of the MotoACTV?

Is your Motoactv connected via USB? If yes, try it again after unplugging it.

Have you installed older versions of the app? If yes, these have to be deleted.

---------- Post added at 10:23 AM ---------- Previous post was at 10:16 AM ----------

You probably already did that but have you tried a restart and a reinstall of the apk?

Furthermore, it is necessary to delete older versions of the apk.

Is your Motoactv connected via USB to a computer when you use the app? If yes, try it again after unplugging the device.
[Other SmartWatches] superdave:
I'll change the file naming convention on the next release, a date time stamp is a good idea.

pocketedgejr,

If the device is mounted in non adb mode (usb drive) then the sd card will not be accessible by the app and it wont create the file. Cant remember if I had error trapping in there. If not ill add a check and display a message that it needs to be disconnected.

unclemonkey77,

Are you able to connect and use adb debug commands to see what the error is? The first post has info on the commands to use.

titusj,

Sorry for the confusion the apps were originally separate and I combined them in to one with the last release. I have corrected the first post.
[Other SmartWatches] memtd:
I can't really take credit for the date time stamp idea. It is how my Garmin Edge 500 works. :)

Any idea if the motoactv is recording cadence from the foot pod when running? If you want some sample data I can send you files if you tell me how extract them.
[Other SmartWatches] superdave:
memtd,

Sorry I had a reply typed but guess it I dint hit send. I am checking the cadence field and recording it as runcadence if the value is set. I don't have a cadence sensor so I'm not sure if the motoactv records it for running. A quick check of the workout code seems to indicate its mostly built around biking, but, i'm not sure there. If you pull your activty.db and look in the workout_activity_apgx table do you see values entered.

Thanks,

Dave
[Other SmartWatches] memtd:
Dave,

I'm pretty confident I can find the file but I'm not sure how to "look" at it. What application do you use?

Thanks,

Matt
[Other SmartWatches] superdave:
http://sqlitebrowser.sourceforge.net/

That one works well.
[Other SmartWatches] memtd:
very interesting. I don't see any values for cadence in my runs.

it does have steps though which I think you could calculate a cadence from if you know how many steps from one reading to the next and the elapsed time. is workout_activity_apgx the raw data? It seems like some foreign keys are missing from the table.
[Other SmartWatches] superdave:
Yeah, that's the raw data. That and table lap_details are how I build the tcx. The keys are not there so I use the workout start time, lap duration and the time of day entry to link an apgx entry to a lap/workout.

It didn't look like it was recording run cadence based off a quick look of the workout app code. I may be able to mod the workout app to force it to record run cadence.

,Dave
[Other SmartWatches] memtd:
It's really not that important! I just don't understand why they wouldn't collect the data if it was available. I'm not that serious about training so it's not a big deal to me but some people want every little bit of data they can get.
[Other SmartWatches] pocketedgejr:
Theres a firefox plugin for sqlite databases that works pretty well. There is also "sqlite database browser" you can download for windows here:

http://sourceforge.net/projects/sqlitebrowser/files/
[Other SmartWatches] stoudamire:
The MotoACTV portal does show "Avg. Step Rate". You can also choose "Step Rate" and "Average Step Rate" as a metric on the MotoACTV itself which works perfectly. It´s really strange that there is no extra data set in the file.
[Other SmartWatches] memtd:
Yes steps are included in the database. You could take the difference in time and steps between two rows and calculate the cadence.
[Other SmartWatches] unclemonkey77:
Never mind. I returned it to stock, installed all updates, rooted it again and installed and it seems to be working fine now. Thanks!
[Other SmartWatches] titusj:
Thanks for this clarification. I will try again and report back either way. Thanks again for your help.

Jason
[Other SmartWatches] MadManX:
Something I noticed the other day when one of the exports was corrupt. On the MotoACTV portal, if you go to Settings -> Export, you can now export your data in the TCX format. The size of the files are probably 2x-3x bigger than this export tool. Might be worth looking into what they have. I've been using it for a week now instead of this just because I don't have access to use ADB all the time to retrieve the exports.

And how I got a corrupt export, I think the app was saving the TCX when I got near my wifi and the MotoACTV synced. It seemed just cutoff near the end.

Another question, since you have a modified Settings.apk, can you add the developer menu so we can turn debugging on and off. Pushing music using ADB sucks.

Another feature request, since several apps can detect a wifi connection, can this one as well and maybe upload to Dropbox or a similar service during the MotoACTVs normal sync interval? ... Probably asking way too much there though since I know you have no control over when or for how long the wifi state stays open. Or does anyone know how to setup syncing of folders (both the exports and music) without installing a launcher. Every launcher I've tried eats the battery compared to stock with this app.

-MadManX