-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get started on Windows? #5
Comments
Unfortunately I didn't have time to make detailed step by step instructions :( I will set up few web pages at some point. Meanwhile feel free to use wiki and edit missing or unclear parts. There is no need in original software or MS Access database used by it, to be able to use this software. Also another user explained how to access DB from original software. The goal I pursue is to push data from watch into various web communities without pressing any single button on PC. Thus no GUI is needed other than a web browser later. So far it works under GNU/Linux upon watch connect. There are some issues with Windows that makes it a PITA. Therefore it would be somewhat lame to extract data with original software and then converting it to CSV. It is going to be too many button clicks and non-portable. I have some sketches for GUI just to show the download progress. I didn't push it to git though. Regarding offline use, it is interesting to me to feed data into R for various plots and analyses. However it is not so easily "GUIfiable". Though it can be somewhat made so with some python, Qt, and rpy. The best way to stay current is to install Python, all the modules, and fetch updates from github. However, if you don't want to mess with all that, keep reading. There is a link on the main page that says "downloads". Download the latest one (schwinn810_win32_e37a681.7z as of now). Use 7-zip to unpack the archive to whatever location you like. If you want kml, gpx generation, then you need to download and install gpsbabel. You will want to use notepad or any other text editor to adjust various options in cmd files. Namely, replace Let me know if you get stuck somewhere. P.S. The previous windows binaries were tested by me on Windows 7. Those were built with Python 3.2 . However they are quite outdated and may miss few things here and there. Unfortunately there are some reasons to migrate back to Python 2 for a while. The very latest binaries I've mentioned above were built with Python 2.7 . However I had no chance to test it on Windows. (Same code used to work on Ubuntu GNU/Linux). |
I am naclark on woot (the first guy to crack the database) I will do my On Thu, May 10, 2012 at 10:15 PM, Mikhail Titov <
|
There is no need in Linux VM just to fetch data. I'd suggest to use cmd (via Start->Run-> cmd ) to test all the settings. Otherwise CLI windows will close as soon as program terminates. As soon as everything is set up, you can have a shortcut on your desktop pointing to schwinn810.cmd. What would you like to see in the "beautiful and well packaged The main purpose for this project was to make data on watch available freely on all platforms that have a driver for SiLabs CP2102 bridge. As you mentioned, it was even "guarded" on Windows, and was simply unavailable on other platforms. |
Again thanks for your work on this. I got stuck trying to install the On Fri, May 11, 2012 at 10:42 AM, Mikhail Titov <
|
You can get fixed driver from downloads page. It is named cp2102_VCP_Windows_XP_S2K3_Vista_7.7z. There are just simple changes in inf file to make another vendor & product id to be recognized. I had it explained after the second screen shot on the wiki page. You can compare inf files in unpacked mine archive with the stock one. |
I uninstalled rebooted and re-installed with the modified driver with the On Fri, May 11, 2012 at 12:44 PM, Mikhail Titov <
|
Are you using 64 bit machine? i've tested it on 32 bit. If this is the case, could you edit slabvcp.inf from my 7z archive with updated driver in a notepad or something? You'll see a section Though devices are same, however EA60 is recognized as VCP one and EA61 as USBXpress. All we do is claim that VCP driver handles devices with EA61 product ID. I had this line missing for 64 bit platform. As far as I remember _there is no need to either reboot or un-install anything_. Just choose update driver for existing hardware in device manager. Uncheck "compatible devices only" (I'm not sure if it is relevant) and browse to that unpacked folder. It should recognize it now as valid. |
Yes I am running 64 bit. I will try this on Monday and report back. On Fri, May 11, 2012 at 1:37 PM, Mikhail Titov <
|
That seemed to do the trick. Now the driver seems to be loading. I changed the bps as instructed. I only found one CMD for editing schwinn810.cmd The only thing I changed was the COM port. As the rest looked fine. After editing I plugged the watch in, plugged the usb in, and ran schwinn810.cmd but nothing happened. @echo off
SET "DIR=%HOME%\My Documents\My Runs"
SET "GPSBABEL=C:\Programs\GPSBabel\gpsbabel.exe"
SET "Z7=C:\Program Files\7-Zip\7z.exe"
%~dp0\download.exe ^
--port COM4 ^
--hook %~dp0\babelize.cmd ^
--dir "%DIR%"
"%GPSBABEL%" -i unicsv,utc=5 -f "%DIR%\waypoints.csv" ^
-o gpx -F "%DIR%\waypoints.gpx" ^
-o kml,lines=1,points=0,track=1,trackdirection=1 -F "%DIR%\waypoints.kml"
rem %COMSPEC% /C DEL /Q /F "%DIR%\waypoints.kmz" > nul
rem "%Z7%" a -tzip "%DIR%\waypoints.kmz" "%DIR%\waypoints.kml" > nul |
There should be How did you run it? Do not just double click (at least until everything is set up). If something goes wrong the window will just disappear with no chances to read what actually happened. Instead, run If you haven't used command processor much, the following link may be helpful. |
http://dl.dropbox.com/u/19832238/Capture3.PNG I have babelize.cmd, I just did not see anything in there to edit. On Mon, May 14, 2012 at 12:24 PM, Mikhail Titov <
|
May I ask you to try previous binaries from download section? Unpack it somewhere aside and just replace |
http://dl.dropbox.com/u/19832238/Capture5.PNG On Mon, May 14, 2012 at 12:59 PM, Mikhail Titov <
|
Ouch... my bad. Indeed exe is not self sufficient. Then set up stuff from another archive independently. Adjust P.S. Also AFAIK it is possible to copy/paste error dialog content so that you don't have to upload screenshots. Try Ctrl-C in such dialogs ... then surround pasted text in here with 3 back quotes ` in the beginning and at the end to make it pre-formatted text. |
I changed the com port, but the download was already there, I added On Mon, May 14, 2012 at 1:41 PM, Mikhail Titov <
|
This looks like you've missed line continuation symbol |
I edited the last reply as I had a problem. Already had that in the first time. I tried adding the _%~dp0_ in front rem start
%~dp0\download.exe ^
rem --port schwinn810.bin ^
--hook %~dp0\babelize.cmd ^
--dir "%HOME%\Documents\My Runs"
--port COM4 ^ On Mon, May 14, 2012 at 3:57 PM, Nathan Clark [email protected]:
|
OK, Let me fix that. I think I tried adding that in. But let me make sure. |
Same problem rem start
%~dp0\download.exe ^
rem --port schwinn810.bin ^
--port COM4 ^
--hook %~dp0\babelize.cmd ^
--dir "%HOME%\Documents\My Runs" edit triple back quotes should be on their own lines. Optionally you can add |
Also move It was as if you tried to run
|
@echo off
%~dp0\download.exe ^
--port COM4 ^
--hook %~dp0\babelize.cmd ^
--dir "%HOME%\Documents\My Runs" |
I'm not sure if I ever mentioned it, |
Yes, my runs is mentioned on one of the pages. I had tried editing the
and
I'm still getting the Python27.dll error On Mon, May 14, 2012 at 4:47 PM, Mikhail Titov <
|
Regarding directory name, it is totally up to you. For Windows XP, one would use Something is got mixed up in your set up. For an old archive, I did not use Python 2.7 at all. If it was requiring something, it would be Python 3.2 related. For older version, make sure you are in a proper folder and that cmd file refers to Meanwhile, I'll see what can be wrong with python 2.7 . I saw some posts on stackoverflow that there is no need to call open() after |
I confirm that it fails. Hold on for a while. I'll see whether open() removal will help on Windows. |
Thanks for your patience. I've uploaded newer version. It looks like it did the trick. Remove existing archives and unpacked ones, and just unpack this one. It already pre-set up for COM4 and |
Also I've noticed that I had to open files for writing on Windows in binary mode. Otherwise there are double new lines appear... |
Port error again. However I was able to borrow a 32 bit XP machine and it On Tue, May 15, 2012 at 10:05 AM, Mikhail Titov <
|
Hm... so is it an issue with 64 bit Windows 7? Did you completely remove previous two folders? Could you copy/paste (also this) complete error message here? As an alternative, you can redirect all output in a file instead of screen by having something like @echo off
%~dp0\download.exe ^
--port COM4 ^
--hook %~dp0\babelize.cmd ^
--dir "%HOME%\Documents\My Runs" > c:\out.txt 2>c:\err.txt provided you can write to Usually path name should not start with just There is a chance that either You may also try to remove @echo off
%~dp0\download.exe ^
--port COM4 ^
--dir "C:\Documents and Settings\you user\My Documents\My Runs" Also... could you type |
I tried `csv2tcx --tz America/Denver 0511201' Still no TCX. On Wed, May 16, 2012 at 1:20 PM, Mikhail Titov <
|
It looks like you are not using the latest code. Did you update The easiest way is to copy working |
Yes, I had downloaded everything together when I deleted all existing |
I presume in overall you did it twice over entire history of this issue? First time when there was an unnecessary call to I just downloaded and unpacked a version from github and tested it. It works as expected.
|
I just downloaded and started fresh. Before I was getting an empty TCX On Tue, May 22, 2012 at 9:14 AM, Mikhail Titov <
|
It is okay as long as you are making a progress.
I don't know how to make it more clear http://imagepaste.nullnetwork.net/viewimage.php?id=3945 . Try to convert existing track data by manually calling P.S. Also you may find it more convenient to use something like Far Manager to navigate in folders and to view/edit files. It is also easier to edit the command line. |
First of all GREAT WORK on this project. I was able to get everything running great on Win7 64 using your windows instructions and notes from this thread. I manually execute csv2tcx and it makes a tcx file with all the data. The only problem that I haven't figured out yet is an issue with the time or timezone. When I upload my tcx to trainingpeaks.com it shows a long flat line from 0:00 to whatever time the run started (which is also wrong but the duration is correct when using America/Denver as the timezone). When using the US/Eastern tz the long line from 0:00 is still present and the duration is now 5:00 hr as opposed to 1 hr. This is a minor inconvenience as my chart is unreadable due to the long time frame since that long line is introduced. Thanks again for your efforts mlt! Getting HRM data off this watch and on to a chart is great and makes the watch an even better deal! |
Hey, @hadeone ! You are welcome!
Have you tried to open resulting TCX in a text editor? Do time stamps make sense? I've noticed that for instance Garmin Connect requires time to be in GMT and did not like when I had a local time zone offset specified according to ISO 8601, e.g. it may not like
If what you see in a text editor looks about right, try maybe some other online services to see if it is just trainingpeaks does not like something particular. Try comparing time stamp formats with those in a legitimate file that shows up correctly, and maybe post both time stamps in here. Does it show 0:00 in trainingpeaks again if you leave out I didn't try that particular site but it worked okay for MapMyRun and Garmin Connect. Otherwise you could upload binary dumps produced with Also would you mind sharing your |
I am new to TCX files but this is what I think a timestamp looks like at the top of my file :
Is this timestamp format created by download.exe or by csv2tcx ? It still shows 0:00 if I leave out the --tz when running csv2txc.exe. E000000000000000000001-020 is the PROD.ID shown by my watch. I will work on getting a dump if none of the info above is helpful, will also try Garmin Connect and let you know the outcome. Thanks again! PS. is there a way to delete the data from the watch after downloading it or should I just do it on the watch itself? |
So trainingpeaks really wants to see
eh ... what? What brand is it? Schwinn? Are those really all zeros??? E.g. mine is
No need, thanks. I'm pretty sure it is all about TZ formatting. Some folks don't respect standards. Last time I tried it, resulting TCX did validate just fine against Garmin's XSD which says all time stamps shall be of xsd:dateTime which in turn mentions ISO 8601. So it should be fine in theory to use local zones. |
It's a Schwinn and it does show all zeros. I got it as a "display model" but it's probably some kind of refurb. Who knows what they did to it. BTW on the Garmin Connect site everything imports fine, but I prefer training peaks because their chart overlaps all the data. Like I said before if it's not a quick fix I can live with it the way it is. You already did enough for everyone that was frustrated with the crappy software this watch came with. |
It probably is. Please update |
You got it! Works perfectly now! Thanks for everything! |
You are welcome! I guess I can close it. |
I took a breather for a couple of weeks on this. Came back today, Downloaded the latest versions, (but did not unpack them) using the old files the TCX worked, and uploaded fine to strava.com. I don't feel like I did anything different, but I probably needed to step away from it for a bit. Thanks for putting up with me. |
So it works but I have to manually run the csv2tcx. You have said that it breaks up the "my" and "Documents" into two separate arguments. I get that, but I don't get how to fix it. I have tried doing Currently using Right now I'm pretty content that I can access the data, even if I have to manually run csv2tcx but it would be convenient to do one click and be done with it. Hadone, care to share your babelize and schwinn810.cmd I'd like to see what you have different. |
What do you mean by saying did not unpack? Some previous binary versions missed time zone data rendering csv2tcx.exe (but not py) useless. Do you get KML and GPX files from gpsbabel provided you have it installed and set path correctly?
I see you like an idea of minimal number of clicks? :-) |
Since I last wrote, I deleted all files and downloaded the most recent. Correct path is now there and It works, getting all files Including TCX, but I do have to use "MyRuns" instead of "My Runs" and is fine by me. I am still getting "the system cannot find the path specified error" (just one now and not two). Path to 7-zip looks good and I don't see any ill effects. So I think I'm good. Thank you so much. BTW NTIM the Percentages are still all funky. |
OK, so I had only changed the path to GPSBabel in babalize, now that I changed it in schwinn810.cmd I get no errors. |
Good to hear you see no errors now!
Do point numbers appear correct if you open your dot points file in let's say MS Excel as coma separated file? Those are in the second column from the right. I suspect it is an artifact of Python 3 to Python 2 rollback as integer division results in integer in the latter while print function expects a float and as a result garbage is printed. I can't test it right now but I've uploaded a version with the possible fix.
I encourage to use different names for your own particular configuration and keep |
Second column from the right titled "No" looks like an unique number starting at 33554433 increasing by one with each row. |
That is not quite right. It should start from 1. It means I have incorrectly decoded the meaning of some fields. And my guess how to correct percentage issue was wrong. Could you please share a binary dump using a Dropbox or something? You can get a binary dump named I suspect that there might be 3 bytes dedicated to elevation (measured in cm). Does it report wrong elevation? For 2 bytes, maximum elevation would be 655 meters, while in Denver I truly believe it is more than that. 33554433 in hex is 0x2000001 . So my (already second) guess would be there are 3 bytes for elevation and 3 bytes for point number. Thus since you have 2 over there it would mean extra 2*65536 cm (1310.72 meters) shall be added to elevation reported as of now. |
I am not sure if elevation is correct, I think Strava auto corrects bases On Thu, Jun 14, 2012 at 3:17 PM, Mikhail Titov <
|
I'm confident now about elevation. Could you try to pioneer #9 for Strava auto-upload if you have time and would like to? The goal is to get all your data off the watch right into Strava with a single click. |
Ha, you know what a fan I am of the single click. I'll give it a try if On Thu, Jun 14, 2012 at 4:12 PM, Mikhail Titov <
|
I'm using MapMyRun. However I don't like it much as it can't really related courses nearby thus you are always a leader of your own uploaded track :( Who would use someone else's course when you got one right off your device??? Also it has tons of ads. AFAIK dailymile does not respect many features of TCX. I did not use either Strava or TrainingPeaks. But I heard from a friend of mine that Strava does recognize common parts of the course thus making it really possible to compete. I don't know if it is a feature of their app for iOS only and whether it would work with uploaded stuff. I tend to think that Garmin Connect is not bad (example) just to visualize stuff. I did not pay attention to the terms of their service though whether it is okay to use it without Garmin devices. While I'm interested in finding out what is the best out there, it does not really belong to either this software directly or this issue in particular. |
I signed up a garmin connect account and noticed that I can turn elevation On Thu, Jun 14, 2012 at 5:09 PM, Mikhail Titov <
|
I have a Schwinn 810. I am a windows 7 user but don't have a clue how to download and use this software. I'm new to github and I am not a developer. Are there instructions anywhere?
On a side note - may or may not be helpful. I have figured out how to directly access the database created by the schwinn software. The data can be easily converted to CSV, then anyone with some programming skills can convert the data to GPX or TCX etc. I don't have the programming skills to do it but it should be quite simple. I'd like to see it in a simple to use GUI program. I'd be happy to provide the method and password to access the hidden database.
The text was updated successfully, but these errors were encountered: