yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] Larry Brent:
Problem with GPS time

Hi,

it seems to me, that with the last beta version there is a problem with the correct GPS time in iGO8. e.q. Correct time was 7.05 in the morning, date Thursday 29.04.2011 but after the use of iGO8 (with GPSModdriver) time is set to 11:28 and date is Friday 01.05.2010 now.

Don't know why, have made no changes to iGO or sys.txt, only used the last GPSModdriver. For now going back to version 3.4.6.

regards

Larry
[Windows Mobile Apps and Games] omek07:
no my friend i thing that this is igo 8 problem

i dont thing that the mod driver change the clock and the date.......
[Windows Mobile Apps and Games] Larry Brent:
I would agree with you but this never happens before (using the newest beta). :cool:
[Windows Mobile Apps and Games] omek07:
could you please install the 3.4.6 and tell us if this change the time ???
[Windows Mobile Apps and Games] Larry Brent:
Will test it on my way home after work.

EDIT: Ok, tested while driving home. No problem with the version 3.4.6, time and date are ok.
[Windows Mobile Apps and Games] Mach2003:
Mod Driver does not se time and date, however most GPS applications do set it. If ModDriver submits tehorrect time and date to the application, it will change the device clock to match.

I'll look into this issue. Since I changed the time base in the latest beta, something must have went wrong.
[Windows Mobile Apps and Games] dampam:
See attached track log taken few hours ago.

Did not see any visible improvement. ( see attached tracks )
[Windows Mobile Apps and Games] omek07:
I had the same issue yesterday

i will wait your new beta my friend ....
[Windows Mobile Apps and Games] maesus:
uninstall problem

I am also suffering from uninstallation problem. Even though I tried with manual removing the registry, using SKTool to uninstall etc, then upgrade to any other version, I will get the same warning that "The previous version of Mach2003 GpsModDriver will be removed before the new one is installed." No matter how thorough I cleaned the registry, the record is still there!:confused:
[Windows Mobile Apps and Games] tcchuin:
any automated cab for the garmin patch?and i can't understand the registry part..what's the name for the registry?
[Windows Mobile Apps and Games] maesus:
don't think so. Cab is not so smart enough to rename filename on existing file, unless another program to do it. But yet better to do it manually.
[Windows Mobile Apps and Games] LongZheng:
RC3 works great with TomTom now on Samsung i780.
[Windows Mobile Apps and Games] LongZheng:
The only problem I'm experiencing now is that it seems only one application can connect to the COM port at the time. TomTom and Google Maps can't use the GPSModDriver COM port at the same time.

I don't know if this is a limitation or problem you can work around?
[Windows Mobile Apps and Games] axl30:
problem

my impressions on the rc3 are fully negative...

then I don't know that rom uses you and whoever says that works well to me it happens with the igo to stop me to a semaphore and to see that on the screen my speed not and' lowered and to go on for at least 100 meters before realizes where I am really..

then I don't understand xche' the version 0.7 (according to me the only valid) with a correction of the lag of 0.7 seconds it acts very well and instead with the rc3 least it take at least 1.5 seconds of correction...(what and!'?!? does it create me him an additional delay?!?!) the updating of the speed effettevi seems too much me variable + /- 10 km / h besides I have noticed a graphic deceleration on almost all the navigators that I have tried as if the gps had a superior refresh to a second and a half
[Windows Mobile Apps and Games] gsmdb:
Did you wipe out all registries before RC3 installation? I got bad result w. RC3 too BEFORE manually deletion of "bad" registries. Take a look on trees; SERIAL5 and Mach2003
[Windows Mobile Apps and Games] peacock93:
With RC2 I was still getting the speed fluctuations with EnableSpeed set to 2. I set it to 0 and the speed stay very consistent. I still get some weird graphics sometimes when stopping, turning and starting. Mostly when turning. iGO8 will sometimes try to recalculate when all I did was turn the corner in the direction I was being told to.

Just want to give you some feed back. I will try RC3 and see if it helps.

peacock93
[Windows Mobile Apps and Games] axl30:
I have made a will everything on a clean rom I have a po of competence and before speaking I make all the controls of the case
[Windows Mobile Apps and Games] GermanGuy:
Question,

Which cab am I supposed to install - GPSModdriverRC_3 orGPSModdriver0_9? Also, does this include the UI or do I need to install that as a seperate cab? Thanks.
[Windows Mobile Apps and Games] IIIIIChrisIIIII:
Hey mach!

I've just had some time to install you driver and driving a round a while. I have to say im pretty impressed. Verry nice solution. It worked much better than expected. With a LagAdvance set to 1500 i've almost no lag. Perhaps i even could adjust that value a little more, but had no more time.

I've tested your driver with the newest iGo software. For me it was important that the top of the arrow shows the position of the front of my car. And with your driver i was able to adjust this with the default values (except the LagAdvance).

Some questions (i've red the whole thread, but not at once so sorry, if i'm asking sth. beeing already answered):

1. Which is the prefered Baudrate (i know i've read this here but culdn't find it any longer)

2. I guess you're calculating the average acceleration and with this you're calculationg the future position. I've observed that in cases i'm accelerating verry fast and breaking directly after acceleration process (for example in front of an intersection) the calculationg position is a little to far from my real position (in the example: i stopped in front of the intersection... IGO shows the arrow behind the intersection). But that's normal because of that algorithm and after some short time IGO resets the arrow to the correct position. Driving with a constant speed (so acceleration is verry poor) the position is, like i've already said, almost perfekt.

Have you already thought (or perhaps even already tested) not to use the acceleration but the calculated position + some constant value (perhaps in meter) in the direction you are driving. Perhaps that would be even more accuret (don't really know if this would be better... it's only a proposal)

3. Did you use Visual Studio to write this driver?

4. I'm verry interesting in how you developed this, because some time ago i investigated a little time by myself to develope the same idea as you have/had. I faild by opening the com-port. I used the Devicemanager to emulate a WM6.1 device and installed a extension to simulate GPS. But i was not able to open the COM-Port. Perhaps i've had checked this on my Diamond ;). However..!

GREAT work! Keep going. If you need some help, just tell me :)

Chris
[Windows Mobile Apps and Games] L_o_k_i:
Hi,

I tried some days ago your driver and I'm very impressed. It's a very good idea to compensate the lag of gps (why someone didn't thought about it before! :D ). I didn't have the time to test RC3, but I will tomorrow.

I don't think it's a good idea to just add a constant value on the actual position because, as you said, when you stop at an intersection you will have this constant that will put your position ahead from your real one.

What I saw by testing (the real gps port):

- when we are not moving there is no lag in position

- when we are moving the lag's value depends on our speed. the more you speed the more there's lag

So the correction should depends on the the speed. What do you think?
[Windows Mobile Apps and Games] oruam57:
I drive tested RC3 on Topaz/Diamond2 with TomTom.

As with 0.9 lag compensation is very good.

As with 0.9 having both Course AND Speed enabled (EnableCourse = 1 or 2 AND EnableSpeed = 1 or 2) causes course instabilities at stop and low speed. Instabilities are small with very good GPS signal (open country) but intolerable with bad GPS signal (urban area, tall buildings).

Disabling Course OR Speed removes the problem. At the moment EnableCourse = 0 and EnableSpeed = 1 seems the best combination but I am not sure because difference from other combinations are small and so longer tests are in order.
[Windows Mobile Apps and Games] Mach2003:
Setup.dll could be used to rename the Garmin file, but then something could go very wrong. I'll think more about adding a cab for QueStub.

I have it on the 'list' to allow more than one app to use teh driver at teh same time. For now choose one app for ModDriver, and set the other to the original port.

Great, I love ALL feedback. Try EnableSpeed at 1 (no averaging, but still allow the driver to calculate speed), when Enable speed is 0, you get the speed as calculated by the GPS, unaltered.

If RC3 has increased lag compared to 0.7, then try reducing SleepTime to 500 as a test. I'll have to go look at the changes from 0.7 to RC3 to see what you could be seeing.

Versions 0.x are Beta test, Versions RCx are release candidates, (and soon) versions x.x are ready for general use (released). RC3 is the newest!

1) Baud rate has little effect, higher is, well, faster! I use 115200 if I have a choice.

2) Distance alone would be worse: to 100kph 1 second of lag is way farther than at 10kph. Earlier drivers ignored speed changes, and the result was worse. No matter what I do, with data comming once a second, there will be no way to accuratly predict where your position will be. Look at an example: At the time of GPS data, you are at 100 kph. By chance you slow quickly just after the instant that the gps data was calculated, my driver will use 100kph for that pass, but your actual speed may have been only 50...

3) Embedded VS 4.0, actually, all the system calls used are compatible with 2003 and up.

4) Too bad you did not get it to work, could have saved me a lot of time :) I have never tried it on the sims, easier to use the real device for driver testing. I flash often anyway, do Hard Resets don't upset me.

Speed is essential in the calculation. Averaged speed is even better for me.

Are you saying that the current driver does not do well at higher speeds?
[Windows Mobile Apps and Games] Mach2003:
Try increasing DeltaDistance and DeltaSpeed instead of disabling Course and/or speed. Watch your speed indication under bad coverage, set DeltaSpeed to a number higher than the biggest number you see. Tweek DeltaDistance up until the effect goes away. These values work on the 'stopped' values, but allow the 'moving' values to be changed.
[Windows Mobile Apps and Games] L_o_k_i:
Glad to hear that. :)

I didn't say that. I tested only beta 9 on road, and it was OK at 130km/h. I didn't have the time to test the current driver. Tomorrow I will.
[Windows Mobile Apps and Games] oruam57:
At the moment I have DeltaDistance = 300 and DeltaSpeed = 30. Is it worth to increase them more?
[Windows Mobile Apps and Games] IIIIIChrisIIIII:
In my case the lag with the original GPS port was always constant. Independent how fast i drove, the GPS position was aprox. 10m behind me. So i thought if i would eliminate this constant i would get perfekt results. And yes, youre right. If im standing (not moving) the original GPS port sends the correct information, but only after some time. Further more you could catch this up with a simple if block. Something like if youre standing return x, else return x+10m where x is the gps - pos of the original GPS port.

But youre right the real world is mostly more complex than that ;)

1) OK, but doesn't drain a higher buad-rate the battery?

2) I understand what youre telling but i'd like to have more informations. Assuming xi is the measured gps position from original GPS port at time t where i=0. We have to predict the position within 60 seconds. Are you averaging the speed or the acceleration? And how many previous xi whre i<0 are you using for calculation the average data?
[Windows Mobile Apps and Games] peacock93:
Mach2003,

With EnableSpeed set to 1 my speed read out very badly. Some times +/-10 or 20 mph. With it set to 2 my speed varies by +/- 5mph and with it set to 0 it varies +/-1 or 2mphs.

peacock93
[Windows Mobile Apps and Games] Mach2003:
I don't realy care if the indicated position is 10 meters out, does not effect anything for me. Accuracy of the signal is, at best, 3 meters anyhow. Even when geocaching, 10 meters id close enough most of the time.

1) faster baud causes more battery drain? I fail to see how this is possible, but whatever baud you want to use, the driver will work with any setting. It opens the original port at the same baud rate as you open mine at.

2) It is complicated... Both is the short answer. Long answer:

Save previous original GPS position, heading and speed.

On each valid reading, calculate distance moved, and heading from change in original GPS position (CurrentCourse), record time lapse from the GPS time stamp. Calculate speed.

Average Speed = Distance Traveled/Time taken.

NewSpeed = 2*AverageSpeed - LastSpeed.

For this text, Delta filters are removed.

If( EnableCourse == 2 )

NewHeading = AverageOf( CurrentCourse, LastCourse)

Else

NewHeading = CurrentCourse

If( EnableSpeed == 2)

CurrentSpeed = AverageSpeed

Else

CurrentSpeed = NewSpeed

If( LagAdvance )

dist = (NewSpeed * 3.0 - LastSpeed) * LagAdvance / 7200.0; // meters to move over LagAdvance

CourseChange(LastCourse, CurrentCourse) * Time/LagAdvance // degrees change over LagAdvance

Project NewPosition, and insert into data.
[Windows Mobile Apps and Games] Mach2003:
Try setting, in driving profile, Distance Moved=60, Zero Speed Time=2500, if you had lag enabled you could also set Minimum speed to 200.

It looks like this will almost stop spin, but then on a corner where you go under 20 kph it will mess up. You can try slightly different values for distance to see what works best for you.
[Windows Mobile Apps and Games] nunein:
(nearly) Same problem here last Thursday. Day was correct but time not: more than 9 hours too early (around 6 AM instead of 3 PM). I hadn't such issues before (updating to version 3.5.0) with iGO8.
[Windows Mobile Apps and Games] dampam:
Thanks, will give it a spin.:)
[Windows Mobile Apps and Games] mk2007:
V 3.5.0 Tracklog

Hi Mach2003

It seems not to work with the fseek back. Attached a short track log. Look at

</trkseg>
</trk>

</gpx>

at all ends of a </trkpt>.
[Windows Mobile Apps and Games] Mach2003:
Extra Caution when using beta this update

A new driver is being installed on the device "MCL", you should verify that you don't already have a device or service with this name. Scan all entries under HKLM\Devices\BuiltIn and HKLM\Services for the 'prefix' entry MCL (or just search the whole reg for "MCL", and verify that does not exist).

There is no conflict on OMNIAII

FINALLY we have a reliable time source that all GPS applications are using to sync the time. This eliminates the occasional problem seen where GpsAPI returns "Data too Late", and arbitrary time re-sets of the device clock.

For the curious: Time is read from device clock, and carefully merged with the GetTickCount() value. The 49 day rollover of GetTickCount is removed (well actually 49 times 2^32 days now :). Devices get notification for Power up/down so I can reset the "clock" on device power up (since GetTickCount also stalls during a power down). MachClock just exposes function calls that translate the IOCtl calls to the device, and adds a bunch of other time functuions I use in this project. Note that we should have a bit more free RAM now too, since all apps/drivers get a 'virtual copy' of the MachClock dll instead of containing the code itself.

I plan on moving logging and other functions out to a dll or two, too, for the same RAM saving reasons.

I could provide an api for MsClock and/or MachClock to any interested programmers out there.

3.5.1

Created a new device MsClock (MCL1:), provides current device time with millisecond resolution, using IOCtrl calls

Created and linked MachClock.dll (uses MsClock)

- Provides SystemTime and FileTime with 1 m/s resolution

- Uses device clock for base time

- Re-Sync time on device wake-up from sleep

Using MachClock to keep time in sync (all apps and drivers)

(Quick)Fixed a bug in appending GPX tracks to existing logs, untested...
[Windows Mobile Apps and Games] dampam:
Hi Mach2003

Unfortunately, the suggested values did not result in visible improvement. Will continue to try other values.
[Windows Mobile Apps and Games] Mach2003:
I discovered another small issue today.

When an app is using gpsapi to read gps, and then later when it closes the port GpsModDriver can hold the application's reader thread open for up to a second, causing device.exe to get all excited, and complain to ModDriver. This also causes the GPS app to shut down poorly (and often slowly).

Also when more than one app is using gpsapi, the logs get messed up. Old is the first app's logs, the second app logs in the normal file, the third app messes up the logs everywhere.

I have a patch worked out and am testing it now, will post once I get it 'working' well.
[Windows Mobile Apps and Games] omek07:
Mach2003 hello

i had tried the new beta but i have a problem

i start my gps app and i have correct signal then i close it and open again the gps app and now i havent signal .

i try it and with GpsModSettings and when i open it for second time i cant see satellites.

its problem of ModDriver or its problem of me device ????

i have to reset me device
[Windows Mobile Apps and Games] lohtse:
have same prob as above... have to go to settings-system-external gps and reset all ports again as settings get wiped..
[Windows Mobile Apps and Games] Jake Bullit:
I am dual booting HD2 with winmo 6.5 and SD Android.I would like to use android geocaching apps,but the GPS data is not accurate at walking speeds.

If I installed GPS mod driver in WM would those settings transfer when I load Android OS?

Cheers.
[Windows Mobile Apps and Games] Mach2003:
NOPE! Not a chance, No way, imposible...
[Windows Mobile Apps and Games] Mach2003:
Dosn't "multi quote" work anymore???

I don't have this issue, but then I am on a newer version now :), perhaps I fixed it and didn't know it.

Look for a new update soon.
[Windows Mobile Apps and Games] omek07:
i have and another problem

When i use the GPS app with my real GPS port all its fine but when i use it with GPSModDriver i have problem

The problem is signal lost every one second ...
[Windows Mobile Apps and Games] Mach2003:
Send me a logfile set (expanded checked), so I can see what is going on.
[Windows Mobile Apps and Games] Mach2003:
3.5.2

Move DeviceStatus maintenece to ModDriver

- Modify COM_Read, COM_Write to support transfer of data to caller (GPSApi.dll)

Remove Power up/down redundentcies from ModDriver and MachCell

Add Thread open count to MsClock

Fix Power up notify in MsClock

Fix Extra calls to UpdateDeviceStatus in ModDriver, when no-one is listening

Create Named event in GPSapi.dll to track mutiple instances of dll
[Windows Mobile Apps and Games] omek07:
i will send you the afternoon my friend....
[Windows Mobile Apps and Games] omek07:
i have figure something ....

I have com 2 for Gps MOd Driver

Com 9 for hardware gps port

com 7 for GPS Program port

and Com 6 for bluetooth GPS

When i use the com 6 all is fine

When i use the com 7 all is fine

When i use GpsModDriver with MsApi port all is fine

When i use GpsModDriver with Com 6 then i have the problem with lost signal for 1 second
[Windows Mobile Apps and Games] Mach2003:
So only with bluetooth input, I'd still like to see the logs.

Is your device clock correct?
[Windows Mobile Apps and Games] RoryB:
3.5.2

Installed fine. Took the usual nearly one minute to get 3D fix after the reset. Later took less than 10 seconds to get a fix. Tonight I will try google maps to check for any wide turns or "wiggling" when I stop.
[Windows Mobile Apps and Games] omek07:
Yes my clock is fine

I have install the 3.5.2 , i will test in an hour with bluetooth.....

You need the moddriver.txt ????

what file do you need ???

I forgot where i can find the files .....

EDIT: I HAVE FOUND IT
[Windows Mobile Apps and Games] Mach2003:
It will be best to zip up the whole device \Mach2003 folder and send me that zip.
[Windows Mobile Apps and Games] omek07:
i just send you the files n your mail
[Windows Mobile Apps and Games] Mach2003:
Your BT gps is only sending the GSA and RMC messages every second, the GGA, GSA, GSV are sent every 5 seconds. Without the GGA every second I don't have enough information to make up a full reply.

Most Sirf gps can be configured to send certain messages every (?) seconds. Can you set yours to send the GGA every second?
[Windows Mobile Apps and Games] omek07:
My friend i had send you that i dont know how i can set the bt gps to sent GGA every second.

i can reset the bluetooth and see if it stuck

do you know anything for setting the bluetooth ????

but my question is that why if i use only the com 6 its worked perfect and when i use com 6 with gpsmoddriver it doesnt worked correct ????
[Windows Mobile Apps and Games] Mach2003:
3.5.3

Include AutoLog, RegUtil, and CardPath into MachClock.dll

- Should save some ram since the code will only load once (shared for all apps and drivers)

- On my device running GpsModSetup saves 20kb of ram

MachCell should have saved another 20kb too, but since it is a service I can't prove it

- Fix a COM port read issue when GSV is not sent regularaly

I also attach here a build (never actually installed on my device :), that removes all logging code from all apps and drivers. The flags still exist in ModSettings, but they are ignored.

This makes the code much smaller (= more ram free, more storage free), but if it does not work right, there is no way for me to tell you why ;(. I do this as a pre-cursor to making an official public release with a Kitchen OEM package (or two). I recomend using the normal build first and then if there are no issues, you can try the no_logging version.
[Windows Mobile Apps and Games] Larry Brent:
Hello,

i'm not sure about this but since the last installed update 3.5.2 my network connection has gone, i had to reinstall it for new. Also my gmx mail account is no more available for receiving and sending emails.

Next, i have no more access to my wlan router at home, because my wlan key has gone as well as the login for facebook.

As i already told, i'm not sure about the reason for this strange behavior.

regards
[Windows Mobile Apps and Games] Mach2003:
Larry, did you check for a pre-existing MCL device before you installed 3.5.2?
[Windows Mobile Apps and Games] omek07:
Hello again

I Had the problem with Bluetooth Gps

The problem that i had was that the Gps lost the signal every 1 second when i using the bluetooth.

I have solve this problem with the SirfTech program

i had change on sirf ( on the program Menu Sirf -> Switch to NMEA Proto...) the GSA and GSV time to 1 s ( old 5 s) the GGA and GLL is 1 s Default.

Now all its fine .

I have install the 3.5.3 and i will test it shortly..

Thanks Albert for the helpppppp
[Windows Mobile Apps and Games] Larry Brent:
I have checked it and there was no MCL before.

And by the way you wrote there is no problem with an Omnia 2 and i own one.

I had to use a backup from last week and all works fine again but with the GPSMod version i am a little confused what should i do now.

Larry
[Windows Mobile Apps and Games] Mach2003:
Then I have no idea why your internet connections would get corrupt by installing ModDriver, I don't touch any of those regies.

Try the latest, logging enabled, version.
[Windows Mobile Apps and Games] Larry Brent:
Thanks for your answer, as i told you before i'm not sure about this.

(makin a backup is always a good idea)

Now i have installed the last version 3.5.3 and all works fine so far.

Larry