yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] Mach2003:
The entire system would have to be duplicated for multiple com port support. ModDriver would have to be modified to run two instances, two free COM ports would have to be available (and would then be reserved). Too much work for me to look into. Just assign the Toggle Link file from the first post to a hardware button, and then you can change profiles at any time by pressing the hardware button.
[Windows Mobile Apps and Games] Lord.Nibbler:
Thank you for the fast reply :)

The HD2 lacks a bit of assignable hardware buttons but anyway it's better than nothing :rolleyes:

Cheers,

Nibbler.
[Windows Mobile Apps and Games] yushir:
It runs on WinCE?

I'm currently trying to get this driver work on a Mio 269 because it's GPS device is giving me some awful (very awful) values.

The main issue is basically that it runs Win CE .NET (4.2). I've been told that my device's GPS Port (Com 2 - 4800 bauds) is a hardware port and that i should install a port splitter in order to get it working.

Any clues in what should i do?
[Windows Mobile Apps and Games] Mach2003:
Tough one... (use at your own risk)

Create GPSID registry keys pretendiing you have a newer operation system.

HKLM\System\CurrentControlSet\GPS Intermediate Driver
"IsEnabled"=dword:1

HKLM\System\CurrentControlSet\GPS Intermediate Driver\Multiplexer
"DriverInterface"=string "COM4:"

HKLM\System\CurrentControlSet\GPS Intermediate Driver\Multiplexer\ActiveDevice
"Index" = dword 2

HKLM\System\CurrentControlSet\GPS Intermediate Driver\Drivers
"InputBufferSize" = dword 0x400
"OutputBufferSize" = dword 0x0400
"SleepOnNoData"= dword 0x03e8
"szActiveDriver" = string "GpsDevice"
"PollInterval" = dword 0x3e8

and then try to install GpsModDriver. It does allow multi open, so in effect it IS a GPS splitter.
[Windows Mobile Apps and Games] L_o_k_i:
bug in date

@Mach2003

Hi,

I have found a bug in RMC sentence:

- before processing: $GPRMC...,040101,...

- after processing: $GPRMC...,04011:,...

As you can see, the last digit is a ":". The result is that iGO change the system date back to 2001
[Windows Mobile Apps and Games] Mach2003:
The other day my phone reset to 2000, thanks for tracking it down, i'll post a fix tonight.
[Windows Mobile Apps and Games] Mach2003:
New upadte

v1.51 posted.

Added Compass Support (no beta tester said it failed them...)

Fixed Date issue. (Thanks l_o_k_i)

Moved device\builtin key from "serial5" to "ModDriver"
[Windows Mobile Apps and Games] JaCoL_JcL:
great, but if i have no compass support phone (i900 Omnia) is recommended update or not?
[Windows Mobile Apps and Games] yushir:
Well in fact i had no problem installing it, the fact is that i can't run it because of ayshell.dll. Would you recommend me a specific version or should i keep trying? I'm getting incorrect cpu issue.
[Windows Mobile Apps and Games] Mach2003:
Install 1.51 unless you like to have your phone think it is in 2000 or 2001 instead of 2010.

I am compiling against ARM V4I, what CPU does your phone have? I have a CE.NET 4.0 XScale, I'll try the ModSetup on it tomorow (it is at the office, I am home). I am linking with aygshell.lib from CE.NET 5.00, but I've tried the program on 2003se emulator with it's aygshell.dll, and it works ok.
[Windows Mobile Apps and Games] yushir:
My processor is an Intel PXA255. I got myself wrong and said the problem was ayshell.dll, well in fact it isn't the problem, i misunderstood what exe check said. It says simply that's designed for 5.00 (which you can bypass using exe check) and that it doesn't match this CPU type.
[Windows Mobile Apps and Games] Mach2003:
QueStub

I just realized that QueStub needs to know the new BuiltIn key too. Update posted.
[Windows Mobile Apps and Games] Mach2003:
At this point, anyway, ARMv4 CPU are unsupported. I could create a special build for ARMv4, and CE 4.20, but it's a lot of work, and I have no test bed for it. Like I said I do have a machine that is 4.0, but it is also ARMv4I (Intel XScale). Some time when I have little else to do, I'll try a test build, but don't hold your breath (blue is not a nice colour for humans).
[Windows Mobile Apps and Games] yushir:
I put it wrong, instead of 4.1 was 4.I (those two look too much to each other, i edited it). Like seen on: http://www.syneex.com/pxa255.htm
[Windows Mobile Apps and Games] Mach2003:
If you have v4I, and can force the unit to accept 5.00 programs, then I see no reason it would report incorrect CPU. Rebuilding for V4I and 4.20 would be a lot easier, still don't hold your breath. CE.NET 4 uses an entriely different UI, specifically the menu system (Command Bar vs Menu). My 'real world' .net 4 applications need special code to run on my phone. And I assume the reverse for 5.0 code to run on your phone.

The Mod Driver itself should not be affected by all this. You could manually install it, and edit the registry to make the system work. Without ModSetup, you would not be able to change profiles with the links though.

Edit: Added a zip of the RGU and certificates you would need to import to make it work. Copy the GpsModDriver.dll from the zip on the first port, to your device \windows folder.
[Windows Mobile Apps and Games] ReX83:
I'm unable to upgrade from 1.50b to 1.51 on my HD2 because it can't unistall.

When I try to unistall the driver the software tell me that it was not completely removed...

Now I tried to install it anyway and it used anthoer COM... from COM3 to COM5. I think that now it's locking 2 COMs because of two different installation processes :S.

How to clean (remove the actual build installed and unlock the two COM ports) and reinstall the 1.51 build?

Thank you!

ps It works very very well with iGO!
[Windows Mobile Apps and Games] Mach2003:
Use SKTools to uninstall it. You may have to manually delete the registry items under HKLM\Drivers\BuiltIn\Serial5 now too.

I'll edit the first post to say that CLEAN unistallation is REQUIRED not optional.
[Windows Mobile Apps and Games] ReX83:
Thank you!

I solved via SKTools!

Your software is great: iGO works like a charm with compass ;-)!
[Windows Mobile Apps and Games] Naamah:
with the 1.50beta all the problem are solved for me.

All works good!
[Windows Mobile Apps and Games] NLS:
PEOPLE WITH HD2 (LEO):

HD2 already has great GPS driver (IMHO). No way near Touch Pro's for example (tested side by side). So... is there any real improvement over the already good GPS driver using this one? (compass is an obvious bonus, but I wonder about the overall improvement too) Has anybody done a side by side comparison?
[Windows Mobile Apps and Games] Schmurtz1968:
In HTC LEO this driver is far more accurate because it corrects some position problems with the built in. No lags any more...and the plus : compass runs with iGO8 for now !

No trouble at all to use.
[Windows Mobile Apps and Games] NLS:
OK a couple more people to feedback and I am installing it. ;)
[Windows Mobile Apps and Games] gregwee:
Works much better than the GPS Intermediate Driver when using Garmin XT in LEO/HD2. Now, In the "GPS Info" tab, I can actually see that it is actively trying to acquire satellites instead of a completely blank screen before suddenly getting a 3D fix. I haven't had the opportunity to test out the increased benefit of the compass yet though.

Just a request.. :D

Would it be possible for you to put in the Garmin XT icon in QueStub? Since installing QueStub actually replaces the actual queppc.exe with itself, my shortcut icon no longer shows it as Garmin, but just a blank window icon.
[Windows Mobile Apps and Games] NLS:
Some questions please:

1) I read that there are various settings (which can be set as "profiles"). I guess these are for tweaking the driver to work better with a specific device. So does anybody know what are the proper settings for an HD2? For a Touch Pro (Rafael)?

2) There is a ProfileLinks.zip. What shortcuts are those? Do I need those?

3) For HD2 and the new driver compass functionality. Does it work out of the box or needs again some settings to be set?

Thanks in advance.
[Windows Mobile Apps and Games] Noam23:
Something I don't get about this driver:

If the driver uses *just* the compass for speeds less than 5kph, how exactly at speeds lower than 5kph the navigation software knows where to locate you on the map ?, the compass can't give you location, just direction...
[Windows Mobile Apps and Games] NLS:
So? Doesn't mean GPS doesn't work below 5km/h. Just cannot assign a direction for you easily. This is where compass helps.

BTW, my questions remain if someone could answer please.
[Windows Mobile Apps and Games] yushir:
I'll copy the dll to /Windows & import registry keys, but how will the system know to initialize the driver?

On this version you can only install certifictates if they're on .cer files and import registry files if they're using .reg extension. That's it using TRE Registry editor (but you can use CeRegistryEditor to import it).

But should i manually add those?:
[Windows Mobile Apps and Games] Noam23:
One more question:

GPS is a battery hog to begin with. Does anyone dare to imagine how much battery will GPS+Compass+Gsensor drain ?, will the HD2 battery last for an hour ?
[Windows Mobile Apps and Games] :
Use aygshell.dll contained in cemenu 0.9b8 (ZIP, 291 KB), link:

http://www.hpc.ru/soft/software.phtml?id=4935
[Windows Mobile Apps and Games] :
Visit http://xdaforums.com/showthread.php?t=365485

There among others I've found the following suggestion:
[Windows Mobile Apps and Games] Schmurtz1968:
Default settings runs good on my Leo. No need to get the hands on the bouzin. The more is that this driver was made and tested for Leo, i.e defaults settings rocks.

don't know.

See my answer to your first question.

Hope it can help.
[Windows Mobile Apps and Games] NLS:
I have to say I crashed big time.

It 99% is because of this install as I haven't done any install the last two days and after the first soft reset after the install of the driver... death.

The phone needed HARD reset. Soft reset froze in the white welcome screen every time. Even soft reset to "safe mode" (SPB Pocket Plus) didn't help as the phone froze a few minutes after I went into "Programs".

I don't know why.

Also since my backup seems to fail (internal storage gets filled up!!!) I am looking at a full reinstall. :(
[Windows Mobile Apps and Games] zex11:
not working for my garmin xt. maybe i am doing something wrong. i installed moddriver,questub.cab, and unzipped questub.zip on my device.

i run gpsmoddriver and let it sit in the background. then i run questub.exe from my device and enter xt, the sattelites say com1 gpsmoddriver but the lag is still here.
[Windows Mobile Apps and Games] Mach2003:
The links allow you to change profile without running ModSetup, and tapping on the profile. Can be assigned to a hardware button.

Compass works "out of the box".

Compass direction is inserted into the GPS data, all other data is still there, just the hardware compass is used for heading. If you have valid fix, then position, speed and sat coverage are all still valid.
[Windows Mobile Apps and Games] Mach2003:
You may have to add them too. The default installer does not create those keys, but driver does depend on them.

Questub.cab includes questub.exe, no need to use the zip too.

GpsModDriver does not have to stay running in the background. In fact it is better if it is closed (save or exit no save from the menu).

In the default profiles, Lag kicks in at 5.0 kph or above.
[Windows Mobile Apps and Games] Mach2003:
Did you manually set the Index value (or GpsModDriver port) to something? Setting this value to a port that is in use by another device can cause the need for a Hard Reset.

I don't know what SPB omits in safe mode, does it exclude COM port drivers?
[Windows Mobile Apps and Games] NLS:
I just run the cab. Didn't have time to make any edit.

SPB AFAIK just skips startup items and possibly some services (although I doubt)...

I am a bit scared to retry this. I now run on Dutty's ROM.
[Windows Mobile Apps and Games] Mach2003:
Um... Lag compensation gets applied in Mobile XT (or any application) once your speed is above 5 kph. Are you using QueStub? Does Garmin show the GPS port as GpsModDriver?

Those posts about importing registry are specific to the person who wants to run ModDriver on a phone that does not have GPSID support. Folks with WinMo 5.0 and later do not need to do anything in the registry directly.
[Windows Mobile Apps and Games] yushir:
jwoegerbauer found this:
[Windows Mobile Apps and Games] Mach2003:
It works for almost everyone else, good time to try it before you get all setup with your new rom.

So what's your point? WinMo 5 is not the same as CE.NET 5.

HTC phones (and all phones WinMo5+) support GPSID, GpsModDriver reads the GPSID com port by default. Those 'extra' registry values containing "Gps Intermediate Driver" are the ones that are created by/for GPSID.
[Windows Mobile Apps and Games] zex11:
thanx for a quick reply

tyes i am using questub, garmin shows the gps port is gpsmoddriver. but the lag still egzists, in other apps, no lag at all. The problem seems to be graphic drawing of the map, as if it doesnt refresh for a couple of cycles, and so i get the lag :-(
[Windows Mobile Apps and Games] Mach2003:
Try disabling smooth in GpsModSetup/setings page.
[Windows Mobile Apps and Games] yushir:
I'm trying to do on what you do, already imported all registry keys. But how do i import the certificate if CE .NET 4.2 only accepts .cer files? Also, i don't know how i'll be able to initialize the driver, i mean, no index was ever created on your .rgu file so i a port should be configured for GPSModDriver to be writing on it.
[Windows Mobile Apps and Games] Mach2003:
I only have the xml and pfx (attached here) versions of this certificate. Without a copy of the cert, MOST roms will not load the driver. Some roms will lock-up completely (=HARD RESET) without the required certificate. Before anyone else asks: Yes the certificate IS installed with the normal CAB installation.

Index will be created the first time the driver is loaded with the lowest available port (assigned by windows itself, when index does not exist).
[Windows Mobile Apps and Games] yushir:
I managed to convert .pfx to .cert (imported it on Windows Desktop PC and exported it to the two formats .cer (X509 base 64 and the other one) and got it to install successfully on the device.

Now, what should i do?
[Windows Mobile Apps and Games] Mach2003:
You have installed ALL the regies, the RGU and the GPSID ones.

You have installed the certificate.

You have backed up all the important data on your phone.

You have placed the dll from the first page (GpsModDriver.zip) into your windows folder.

Then Soft Reset, and test it. You can look at HKLM\Drivers\BuiltIn\ModDriver (assuming v1.51, 0r ..Serrial5) Index will be the port you need to use in your GPS application.
[Windows Mobile Apps and Games] yushir:
I'm using the last dll (1.51) and had no success. I've MyCert installed on Certificates on Control Panel, Imported all registry keys you marked me (included the ones from GPS Intermediate Driver) and copied the .dll to /Windows but i've got no Index key on ModDriver.

My device has at port com 5 the driver for TMC.

I have put the certs and reg file (with GPSID on it) here: http://www.mediafire.com/?wyeqitnzynv

Want me to upload a copy of my registry?
[Windows Mobile Apps and Games] Mach2003:
If index is not created on soft reset, then the driver is not loading. You could change the EnableLogs value under Mach2003\GpsModDriver to a 2 (the default was 0), and then soft reset. Look at the \Mach2003\ModDriver.txt file to see if anything is in there. A missing or empty file indicates that the driver is not even being loaded by windows (certificate or CPU problem). Anything else in that file would be helpfull in telling what is going wrong.
[Windows Mobile Apps and Games] yushir:
It does not even exist the folder on soft reset. Shouldn't be a CPU problem (it has instruction set ARMv.5TE), cert problem then i don't know how to even solve it (did what should do in order to "convert" it, but you should make a native .cer version).
[Windows Mobile Apps and Games] Mach2003:
You could try and create index (DWORD) = x, under drivers\BuiltIn\ModDriver, where x is a free com port. Soft reset and then see if it works (or log files are created).

Your system may refuse to load the dll, marked as 5.00, even though you can read the ARMv4I code in it.
[Windows Mobile Apps and Games] Mach2003:
CE.NET 4.2 version

The attached CAB is v1.51 CE.NET 4.2 ARMv4I, I don't recomend this for anyone who can use the 5.00 version on the first post!

Edit : Posted a newer build
[Windows Mobile Apps and Games] Dr.Sid:
I'm using this on Leo. And I have few problems. It does not work after softreset. It can't be uninstalled (it reports errors). If I reinstall it, it works again. However during the reinstallation it says both uninstallation of old version and installation of new one failed.

Otherwise it works fine. I use it to insert compass heading only, I have everything else off.
[Windows Mobile Apps and Games] kenyloveg:
What extra settings need to be done if I don't use inbuilt GPS of LEO, but bluetooth 5Hz GPS (MTK chip)?

Thank you.
[Windows Mobile Apps and Games] yushir:
THANK YOU ALOT! It connects! I'll test it today on the road but at least it connects at port com 1, 4800 bauds.

EDIT: The port where it connects can be seen on HKLM/System/CurrentControlSet/GPS Intermediate Driver/Multiplexer/Driver Interface string key. It has configured like a charm (on hardware port - com 2) and i suppose to change settings of the driver it's done via registry, right? Well then it will be no problem to create a single MortScript that will handle it.

Should i note that you shouldn't even try the port COM 1 on a different bitrate from the one of your gps as it will surely hang for some seconds your device without any result.

EDIT2: What i've also found is that GPS Intermediate Driver registry keys aren't created all the times. For example if you use MioPocket, which at each boot restores the registry, you'll find that you need to create the registry keys yourself after installation. But that isn't a big problem at all, just because it does import all registry keys present in a folder. Like this one, for example: http://www.mediafire.com/?jmmzvmmmhey

I attach the Setup log and the Driver log (I've still not tested it on the road).
[Windows Mobile Apps and Games] :
When I'm right, COM1 and COM4 are hardcoded values in ModDriver: obviously COM1 is the default GPS hardware port in Windows Mobile, but your device is running Windows CE (a predecessor of Windows Mobile) and COM4 is the default GPS software port provided by GPSID.
[Windows Mobile Apps and Games] NLS:
Windows CE is not a predecessor of Windows Mobile
[Windows Mobile Apps and Games] yushir:
Which device are you using? This is only for Win CE 4.2.
[Windows Mobile Apps and Games] JaCoL_JcL:
och so this is for a WIN CE 4.2 devices?

And where i can find a version for WIN CE 5.0 (CORE) ?

Cab from first post is god for winCE 5 ?
[Windows Mobile Apps and Games] :
Tried installing most recent ModDriver v1.51 (device's OS: Windows CE 5.0 Core)

I got message "GPSMod Error: Driver did not autoload Com Port number is not assigned Soft Reset, and then look in Registry."

The ModSetup log file reports:

000.001 Install Init

000.001 Open Existing Key Fail: Software\Mach2003\GpsModDriver: 2

000.001 Created Key: Software\Mach2003\GpsModDriver

000.002 Write Uninstall: 4 bytes, 256

000.002 Install_Init: Write State

000.751 Open Existing Key: Software\Mach2003\GpsModDriver: OK

000.751 Read EnableLogs: 4 bytes, 0

After installation I noticed following files were created:

\Windows\Mach2003 GpsModDriver.unload

\AppMgr\Mach2003 GpsModDriver.DAT

\AppMgr\Mach2003 GpsModDriver.dll

\Windows\Programs\GpsModSetup.lnk (64#"\Storage Card\MioAutoRun\Programs\GpsModDriver\GpsModSetup.exe")

\Storage Card\MioAutoRun\Programs\GpsModDriver\GpsModSetup.exe

\Mach2003\ModSetup.txt

Looking in registry I found, the keys

"HKLM", "System\CurrentControlSet\GPS Intermediate Driver"

"HKLM", "SOFTWARE\Mach2003\GpsModDriver\Profile1"

"HKLM", "SOFTWARE\Mach2003\GpsModDriver\Profile2"

were not created, wheras the key

"HKLM", "Drivers\BuitlIn\ModDriver\Dll" with value "GpsModDriver.dll"

was created, but the Dll created on disk seems to be "Mach2003 GpsModDriver.dll"
[Windows Mobile Apps and Games] Mach2003:
Try uninstall with SKTools, soft reset, then reinstall, and see if it improves.

Set the external GPS program port to the one for the BT GPS.

Generally the GPSID values are READ by the driver and not created at all, although a couple would be created on driver start.

Try the GpsModSetup application, see if you have a menu, if you can use this, then reg edits will not be required.

Neither COM1 nor COM4 are hard coded in the driver (but they are defaults when no other information is available). Driver reads external gps program port (COM4), driver responds to hklm\drivers\builtin\GpsMod\Index(COM1). When Index is 0, blank, or missing, windows assignes the first available serial port, and ModDriver saves the value into Index for the next boot.

The first post has the standard Windows Mobile Build, the special CE driver I posted a few back is only for windows CE. Well actually the CE cab has the exact same files as the standard one, just with differnet build tags.

Make sure to ALWAYS INSTALL TO DEVICE, never to storage card. Drivers can not be loaded from external memory, only from device memory.
[Windows Mobile Apps and Games] :
Ooops, until now I thought GpsModDriver.dll is the driver, and GpsModSetup.exe is solely a config tool. And as I pointed out, driver is installed to device. The reason why installation of v1.51 fails must be another one. BTW: GpsModSetup.exe doesn't offer a menu!
[Windows Mobile Apps and Games] yushir:
Yet i can't run GPSModSetup.exe and exe check says the same as before (it's for another cpu). I'll try to make a MortScript menu when i've got more free time (like three weeks or so on).

BTW: If you would accept my suggestion i'd post the WinCe special driver in the first post with the other version. That way people would know that there actually exists a working version of the driver for WinCE 4.2 .NET.
[Windows Mobile Apps and Games] Mach2003:
Yes only GpsModDriver.dll has to be installed into the device.

You did point out that the dll was installed to some app.. folder with the incorrect name, on your device... Windows drivers must be installed to the windows folder, no ands ifs or buts.

None of those paths and files you mentioned were created by MY installer, so in order to sort out your issues, uninstall/remove all the related files you have there and then using GpsModDriver_151.cab from the first post do a standard install to the device. See if all your problems go away. Then if you want to move ModSetup to your card do so (I can't see why, it's a small app and you have so much free program memory).
[Windows Mobile Apps and Games] Mach2003:
Sugestion noted. I bet we all would see many posts here when people with standard Windows Mobile phones tried to install the CE.NET version and it failed miserably... In any case I won't put a first page post until the UI is converted properly too.

I did re-build GpsModSetup for 4.2 (in the CE cab), I don't see why you can't run it. I did expect you to have no usable menu...
[Windows Mobile Apps and Games] Mach2003:
Try this cab, it is built for PPC 2003 (ARM4). GpsModSetup runs (with menu) in emulator. I also built and attached a QueStub for PPC 2003.
[Windows Mobile Apps and Games] JaCoL_JcL:
hey mach2003, any chance to get all non Windows Mobile 5/6 version in first post? This will be helpfull! I can't find a version for WIN CE 5.0...

:)
[Windows Mobile Apps and Games] JaCoL_JcL:
ach to bad :/ i need this for a WinCE :/

BTW i can't instal it properly on Win Mobile 5 either :/

so this is only WM 6.1 with Xtra GPS ?