yashsingh1/xdaforums huggingface dataset:
[Touch Diamond, MDA Compact IV General] stephenordoug:
Running on a Touch HD (Blackstone)

The latest version (3.84) does not work properly on a Touch HD. The main GPS and logging functions are fine - but whenever you attempt to look at a map, the application crashes with an "Out of Memory Exception". This has the knock on affect of meaning that settings can't be saved either...

I recompiled a debug version from your source code, and debugged the app in Visual Studio. (Glossed over a 1/2 day of faff to get that all going - but got there in the end!)

The crash happened in PrepareBackBuffer - it happened at the line:

BackBuffer = new Bitmap(BackBufferX, BackBufferY);

The issue is the Touch HD having too big a screen - 480 x800 - meaning that the app is unable to create a buffering bitmap as large as requested.

The size of the buffering bitmap is defined in SetAutoScale.

If I change the code in SetAutoScale below:

EnlargeX = ScreenX * 2 / 3; // enlarge by 2/3 of the screen size

EnlargeY = ScreenY * 2 / 3;

to:

EnlargeX = ScreenX * 1 / 6; // enlarge by 1/6 of the screen size

EnlargeY = ScreenY * 1 / 6;

Then BackBufferX and BackBufferY end up being corresponding smaller, and the application then works just fine.

On my device, ScreenX==480, ScreenY==646. (Not sure why not 480 and 800.) The original setting resulted in a background bitmap 1492x1506 = 2.2MPixels = 8.5MB, whereas the adjusted setting gives a background bitmap of 852x860 = 0.7MPixels = 2.8MB - i.e. 1/3 of the size. (the constructor for a bitmap object defaults to 32 bits/pixel - so these bitmaps are quite big!)

I've have no idea what impact that might have on other devices, and no idea what a realistic maximum aught to be... I also don't know if the out of memory error is a limitation of what the Touch HD can handle, or if it is a OS imposed limit, or if is a limit imposed by the number of apps I happen to have running...

You've obviously put a lot of work into this application - just the sort of thing that HTC should buy from you to show off their new phones!

Thanks a lot,

Stephen
[Touch Diamond, MDA Compact IV General] Nunu2005:
We need it both :)

Most often we run over the same track, then will be very nice if we can just detect the end of the lap automatically.

The button to do it manually will be needed when we do intervals.

BTW, can we also add such a thing as autolap, which divides the run to 1km parts and give stats for each km.
[Touch Diamond, MDA Compact IV General] josejad:
Too slow when resume from bklight

Hi:

First of all, congratulations for this great and easy-to-use software.

I have just one problem. I push buttom for turn screen off, but when I turn it on again, the settings, bkligth, and stop buttoms doesn't respond, I still can shutdown the program with the x, but everything turns sloooow and I have to soft reset the pda.

Any idea?

Thanks in advance
[Touch Diamond, MDA Compact IV General] AndyZap:
Have you tried to use the hardware power button, to turn it on/off (in Options, do NOT show BkLight Off button). Also make sure you have "read GPS directly" in this case. Which phone do you have?
[Touch Diamond, MDA Compact IV General] AndyZap:
Thank you very much, Stephen, for debugging! Interesting - I had "out of memory" when I trying multiple maps and tried to load 8 of them (then decided that 4 max is OK, I have Diamond). I did not expect that we could have memory problems just with drawing single bitmap for the maps screen.

OK, I will make a smaller buffer then ...
[Touch Diamond, MDA Compact IV General] stephenordoug:
No problem Andy - it was fun - though I suspect that my boss wouldn't be too happy if he realised that I spent a couple of hours of work time playing with some software on my phone when I really should have been working!

My value was pretty experimental - just halved the "extra" until it worked - the original 2/3 was too much, 1/3 was too much, 1/6 happened to work...

I had a look, and couldn't find any guidelines as to memory limits on windows mobile... so I don't know what value you should be aiming for. Of course the smaller the value, the faster the app will be - but possibly the less even the panning around...
[Touch Diamond, MDA Compact IV General] AndyZap:
Memory usage

I did a bit of investigation how much memory is used by the tool. I simply looked at Windows | Settings | System | Memory as I use GpsCycle, then as I close it.

There are a lot of bitmaps to plot (as the main, map screens and the buttons are all bitmaps, plus the jpeg maps), so this is why the tool uses a lot of memory. The size used by each bitmap is easy to estimate - just multiply width by height, and multiply by 2 (I checked, and it seems default format is 16 bits=2bytes per pixel. I also checked that if I specify 32 bit/4 bytes per pixel format in the bitmap constructor, that the memory usage by bitmaps is doubled from "default"). So here is the breakdown (on Diamond, portrait mode):

- Tool with all buttons, BUT: no main screen, no maps screen, no about screen, no maps loaded: 2.16 MByte

- About bitmap loaded : 2.53 MB

- Main screen added : 3.1 MB (500 kb for main screen)

- Maps screen added (no jpeg maps) - 5.64 MB (2.5 MB for maps screen, as it it larger, have "border" to move the screen around).

- one jpeg map (i.e. if select maps folder which is not empty, and have "multimap" off) - add about 2.5MB per map, I got 1280x950 jpg files captured from GoogleEarth on my PC). For 4 maps add about 10 MB then - so the app mem usage grows to 15 MB.

I have an idea how to reduce the "about" bitmap size, and also combine map and main bitmaps into one, so this shall bring down the memory to about 3...3.5 MB (without JPEG maps). Regarding jpeg maps - you can control size yourself - probably it makes sense do not create huge maps, so you will not run out of memory.

So the memory usage is large - but about the Stephen problem on HD - seems that it was not much free memory at the first place, maybe it was a lot of other tools running? Has HD more memory than Diamond?
[Touch Diamond, MDA Compact IV General] Beards:
Guys,

My apologies in asking these two questions, which for the many here they are going to sound pretty dumb.

Unfortunately I'm finding it very difficult to find time to obtain the answer myself.

My question relates to 'Map Files'.

1. I notice in the settings there is an option to set the input for jpeg files.

Is it a case of simply saving a jpeg file from say Google Earth to the location where GPS Cycle COmputer can locate the file?

But if so, how would GPS Cycle Computer understand the positional data of said jpeg?

2. Also, once you start a track and you hit the graphic track log button (bottom left icon), although it shows the position in Red it does not display a map, simply saying in the bottom right hand corner "no map".

Basically, how do you get a map to display?

Again my apologies for these questions.
[Touch Diamond, MDA Compact IV General] AngelGR:
1. Read the readme, please. ;)

2. If you've created and saved the right map into the right folder, you'll see it on screen. :)

Best regards.
[Touch Diamond, MDA Compact IV General] Beards:
The ReadMe file....... Oh bother.... :o

So sorry AngelGR

Thanks for the information. I'll inwardly digest and get that ReadMe file loaded.
[Touch Diamond, MDA Compact IV General] ZZigi:
Hi Andy,

my comments regarding lap count...

Different options are possible if you take examples from various stopwatches:

manual laps (here the button is abviously needed)

autolap at defined distance (e.g. every 400 m, 1 km, etc.)

autolap at defined time (e.g. every 5 minutes)

really complex ones where you can define sophisticated interval trainings based on distance, time or target heart rate

Speaking for myself I would be totally happy with the first option i.e. manual laps as I'm using GCC as support for my HRM which lacks distnace measurement while running.

And actually the lap count you described would be rather of very little use because if I run the same loop I would measure it in e.g. Google Maps before the training to control the pace.

The lap count is most useful if you want to run intervals on "unknown" route. Then you would like to measure e.g. 2 km then take rest for 3 minutes (GCC still measuring distance) and repeat e.g. 5 times. And after training transfer distance information GCC laps to splits from e.g. HRM log.

Another popular training is to run increased time intervals. E.g. 4, 6, 8, 10 and 12 minutes intervals w/ 2 minutes rest between each. Again lap count and average lap pace information would help to measure distance covered in each interval and control pace in each part.

If you would like to exchange more information about different possible options we can contact via mail because I'm not sure how many members might be interested in this type of stuff ;-)

Best regards,

Zigi
[Touch Diamond, MDA Compact IV General] SnowChucker2009:
Exception at Startup

Hello,

I downloaded the latest version of GPS Cycle Computer (3.84) and tried to run it on my HTC SMT5800 with Windows Mobile 6.1 Standard. It installed fine, but when I try to start the program, I get an "unexpected error" (details below).

Any ideas what's wrong? Any reason I shouldn't be able to run the program on my system? :confused:

Thanks,

Mike

Error

GpsCycleComputer.exe NotSupportedException

at

Microsoft.AGL.Common.MISC.HandleAr()

at

System.Windows.Forms.Control._InitInstance()

at

System.Windows.Forms.Control.ctor

at

System.Windows.Forms.ListControl..ctor()

at

System.Windows.Forms.ListBox..ctor()

at

GpsCycleComputer.Form1.InitializeComponent()

at

GpsCycleComputer.Form1..ctor()

at

GpsCycleComputer.Form1.Main()
[Touch Diamond, MDA Compact IV General] AngelGR:
I think that enough members, specially those who know about programmed sport training.

Option 1 (Manual laps) could be enough, if it's combined with a post-processing PC app. A "Hard training option" or something under "options" for activate a big area on screen (maybe all the unused), so we can press without be careful with the position and save a point with time and coordinates (and heart rate if it's implemented). Or a dedicated screen for the stopwatch/timer if it has more advanced options (could be opened pressing the "Time" zone).

If we are doing interval training, for example 6x1000 - 3 min resting, we could have info enough simply looking the clock and pressing the screen at start/end.
[Touch Diamond, MDA Compact IV General] ZZigi:
And lap distance, please! If it's not too complicated but it should not I suppose as total distance is already available on main screen.

If we had only coordinates we would need to use another application to convert it to distance :-|

Best regards,

Zigi
[Touch Diamond, MDA Compact IV General] drtrppr:
Testdrove 3.81 last week:

:)

Oeps, that's like recommending windows to a hard-core linux user :eek:

Cursor is allmost right on the latest OSM-map I use, good enough.

(the fun of openstreetmap is making changes you can see in the map the very next day. OSM gives the opportunity to put all those cycle tracks on the map, don't see those tracks at Google :D (using the osm cycle map rendering on GPS Cycle = :cool:)

:)

Yep, that's a way to do it, but I can use paper and pencil too :p (small not that sophisticated total distance measure would be great though)

Didn't know bluetooth rate meters are on the market, that's good news (putting all info into 1 thread isn't the easiest way to get overview :confused:)
[Touch Diamond, MDA Compact IV General] AngelGR:
Yes, I thought on coordinates because I suppose that GCC does the calculation using that kind of data, and they're directly adquired by the GPS, so it's almost the same, since you'll need some kind of "translation" always. If we load the file with a future PC app (better for detailed analysis), there's no problem.

There's a GE version for Linux:

http://earth.google.com/download-earth.html

But openstreetmaps is nice, indeed.

You're right, but it was something related to GCC, a feature request for the future. You can see more info here, and even a link to an open source project:

http://en.wikipedia.org/wiki/Heart_rate_monitor
[Touch Diamond, MDA Compact IV General] AndyZap:
This could be because you use WinMobile Standard, not Pro, as used in e.g. Diamond. Are you able to install .NET compact framework 3.5 on you phone? It would be good to install/reinstall it and try to run the tool again. Also you can try to install the tool into main memory (if you have it in storage card) - maybe it would make a difference...

Unfortunatelly, it is difficult to say what is exactly problem with your phone - maybe try to search forums for your phone and see which application can/cannot be run on it. I certanly would love to make GpsCycle to be compatible with more phones - but need your feedback what needs to be changed...
[Touch Diamond, MDA Compact IV General] markcheng:
I experienced your "short" distance problem yesterday. To prolong the battery life, I reduced the GPS activity to 20 Sec. After 3.5 hours ride, the battery seemed going strong but I found the GCC missed a lot of GPS signals and hence the trail was distorted with a lot of straight lines. I think this is why the distance was a lot less than actual distance.

I am going to increase the GPS activity to 5 Sec and see it will be better. Otherwise, I have to back to Always On.
[Touch Diamond, MDA Compact IV General] AndyZap:
I found that it is important, if you want to use GPS on/off (and save battery power), to make sure that you are getting GPS lock very quickly after each "off" period. There are usual recommendation - run QuickGPS, do soft reset (then I can a lock in about 10 sec after switching it on and in about 5 sec after a 1 minute pause). But also you phone position is important - I found the best is when it is clipped to a belt on the back (or in a backpack - I have to tried to clip it to the handlebars, but I guess this shall be OK as well). And I had a lot of problem when it was in a leg pocket (and moving up/down all the time)...
[Touch Diamond, MDA Compact IV General] markcheng:
GPS fix

Andy,

Thank you for your guidence on the GPS fix. I did almost everything you mentioned.

1. I left my XDA Orbit 2 on charger until the moment I went out so that I could maximise the the battery life.

2. The XDA is already on GSM rather than 3G, again to save power.

3. I ran QuickGPS followed by the soft reset.

4. I started GCC as I went out of the door.

5. The XDA was mounted on the handlebar and it GPS fixed within seconds. I could recall the green square GPS sub-screen and speed reading.

6. I turned the screen off, to save power again and only briefly looked at it about halfway into my 3.5 hours ride.

7. The route was mixture of forest bridleways (not densed with trees) and farmlands (Epping Forest towards Fisher's Green and back).

8. I found 20 Sec may be too far apart for cycling to have accurate reading. I am going to try Always on and hoping the battery will last for the whole ride.
[Touch Diamond, MDA Compact IV General] ZZigi:
Hi Mark,

if you don't need it switch off the phone radio at all (GSM). This should give you additional significant battery saving... especially in remote areas.

Regards,

Zigi
[Touch Diamond, MDA Compact IV General] HappyFace:
I also do not use my phone radio (GSM) during logging my ATB tracks. I started to switch to flight mode, but the battry still drains rather fast. Nowadays I remove my SIM card and I can log for about 3-4 hours with GPS setting to 'always on'.

I asked my provider about SIM activity in flight mode and they confirmed still activity of the SIM in flight mode.

So my suggestion for battery saving: remove the SIM card
[Touch Diamond, MDA Compact IV General] markcheng:
A bug is found when terminating by HTC Task Manager

When GCC (v3.84) is recording, if I press and hold the X button (HTC Task Manager v2.1) to terminate the program, a warning message of "If you exit, all data will be lost. Do you want to exit?" will appear. If you decide to say "No" because you don't want to lose the data, it will still terminate the program and you cannot start the GCC again unless after a soft reset. If you say "yes", it will terminate the program but you can start GCC again.

If I use the O2 Custom icon (O2 task manager) to do the same, choosing No will not terminate the program and works fine.

My Os is WM 6.1 Prof on XDA Orbit 2.

This is only a minor bug but I thought I report it so that GCC can cover wider range of platform.
[Touch Diamond, MDA Compact IV General] sirenobie:
GCC 3.84 not working on Omnia

Hi guys

I have recently loaded GCC 3.84 on my Omnia. GCC loads up fine and you can see that it has acquired satellites (ie it shows that the gps is on, functioning properly, and there are good Snr, T, and Dh readings) . However, no matter how long I wait, the red square indicating that it is still acquiring satellites never changes to green.

If I turn off GCC and use another gps program such as Garmin Mobile XT or Memory Map Pocket Navigator, I have full signal and I can navigate with them. When I turn them off (with the GPS still functioning) and start up GCC again, I still can not get the program to turn to fully lock on satellites and turn green.

The only thing I can think of is that I have not set up my log file properly or one of my

Any help in solving this issue would be greatly appreciated.

thanks

dtg
[Touch Diamond, MDA Compact IV General] :
Some proposals for enhacements

Hi.

First of all, congratulations and thanks forthis great software.

I'm proposing some enhacements for this software as I have been using it and consider some points to be taen into account:

1) Could the "GPS activity" times be more?. For example "always on" an "run every 5 sec" are giving more details, but battery saving is less. On the other side, "run every 20 sec" and more are sometimes getting values with lower level of details in tracks. So for everybody weighting between battery and details, is it possible to include 10sec, 15 sec and 30 sec?

2) For kml file format, the points don't include the tiem for every point (don't know for sure if the file format allows it). Is it possible? (GPX format does include those data) (I've seen some references to this point before...)

3) For those of us who use OziExplorer, is it possible to include the possibility to get the output files also in "plt" format? (of course I know that there are SW for convert the files like GPSBabel, but just to get quick conversion....

Again thanks in advanced nd sorry if repeated (I only could fid references to point 2).

/lince
[Touch Diamond, MDA Compact IV General] markcheng:
The red square simply means it is not moving. It will go green once you start moving and yellow when you paused. It's probably working already. Just give it a spin.
[Touch Diamond, MDA Compact IV General] AndyZap:
Unfortunatelly - this is something I might not be able to fix (unless someone know the solution) - I just use the standard .NET function which is called as the program is closing .. so if it does not work, then the problem is somewhere in .NET itself.
[Touch Diamond, MDA Compact IV General] AndyZap:
Try to uncheck "read GPS directly" - then Windows shall take care off all GPS settings - and try again. Also could you tell me this flags after "GPS searching" you have (P, S, T) - needs all 3 to have "position, speed and time" to get it locked. Also you could try to capture your GPS output - use HTC GPS tool (search this forum for it) - as you run it, you will see a checkbox to enable logging - it will generate a text file somewhere on your phone (in root, or My Documents, do not remember exactly) - this is the log I need.
[Touch Diamond, MDA Compact IV General] davey1980:
GPS for OMNIA :(

check wot i found from trying to fix this.

http://www.omniadevelopers.com/known-working-gps-software-for-the-omnia-t4.html

in short the GPS chip in the samsung omnia works better when at speeds while HTC picks up better at slow speeds.

kinda gave up trying since i have same Omnia GPS probs trying to find satellites.
[Touch Diamond, MDA Compact IV General] AndyZap:
Well - if you could get me a GPS output log from Omnia using e.g. HTC GPS tool (see my reply above) - I can try to figure out what the problem is. The GPS log is just a text file with the commands GPS is writing into the COM port.
[Touch Diamond, MDA Compact IV General] davey1980:
found on pg 47. (download htc gps tool from .. http://xdaforums.com/showthread.php?t=360477&highlight=HTC+GPS+TOOL )

well i tried it but pop up says .. sorry this is for HTC devices only. is there a plan B?
[Touch Diamond, MDA Compact IV General] AndyZap:
OK, plan B is: I just created a new DLL which will dump GPS data : http://gccv2.googlecode.com/files/GccGPS.dll

You need to replace the DLL which is supplied with GpsCYcleComputer (look in the folder where the app is installed). Then run GpsCC as normal (make sure "read GPS data directly" is ON), try to get a GPS lock (make sure that you get good GPS reception, so other tools get get data). Close GpsCC and Look into your phone root folder (very top one) - it shall be file "GpsCC_debug.txt" - this is the one I need!
[Touch Diamond, MDA Compact IV General] AndyZap:
Thanks for the comments!

re 1) - maybe it makes sence to replace 5 sec with e.g. 10 sec, I it seems GPS stays on for about 3 sec after switch off command from the software (I guess, to avoid frequent switching on/off) - so 5 sec makes almost no difference re battery saving. I could also shift 20 sec to e.g. 30 -I do not think we need such a fine granularity (to inroduce values in between), just need to set the values right.

re 2) - I do not think KML can have timestamps (unless you put them into comments, but the other tools will not know about it). I think it is better to use GPX, where the timestamps are supported

re 3) - let me put it at the back of the "todo" list - I will have a look later
[Touch Diamond, MDA Compact IV General] davey1980:
im no wiz at this, i downloaded that dll file but i have ur programme as a CAB and cant seem to open the contents, i also tried downloading the REG EDIT programme but lost to how to use that, will have to read up on this and see if i can get the data to give u. :(
[Touch Diamond, MDA Compact IV General] markcheng:
I think what Andy meant was to install the cab file as usual and then copy and paste the dll file (that he wrote specifically for you) into the program folder (typically, \Storage Card\Program Files\GpsCycleComputer).
[Touch Diamond, MDA Compact IV General] AndyZap:
Yes, this is what I meant - sorry for not enough instructions. Just install CAB as usual, then copy and paste the custom DLL. It is easier to do this on PC, i.e. with your phone attached. Browse you phone folders, and locate the one which contains GpsCycleComputer.exe and GccGPS.dll. Paste the DLL which I wrote into that folder (you will be asked to overwrite - say "yes", i.e. replace the existing DLL with the new one). Then you can run the tool as normal.

To get the text log - after you run the tool for some time, and close it - look into root (very top folder) on your phone - it shall be there, the text file. You can zip it, and attach to your post.

To go back to "normal" install, just install the CAB again.
[Touch Diamond, MDA Compact IV General] Hojlind:
thx man this is a very cool program and im for sure going to run a bit more now :P
[Touch Diamond, MDA Compact IV General] DarrenUtd:
Additional feature using G-sensor

Andy,

Thanks for the great application. I have an idea for some increased functionality using the G-sensor. I did a search, and found only a suggestion to use it as a pedometer. I see also that this is in your future improvements list.

My idea was a little different - I was thinking it should be possible to use the G-sensor to sense the angle of the bike, and thus the grade of the climb (in percent). This would be of great interest to avid cyclists.

The main problem I could forsee is the small difference in angle involved, e.g. a 10% grade (which is near the largest you'll see) comes out to a 5.7 degree angle. Anyone know how precise these G-sensors on phones are?