yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] Mach2003:
The only ROM file that is replaced is gpsapi.dll. It is replaced with MY copy. gpsapiorig.dll is the renamed (gpsspi.dll) original file from MS, so you could either use the copy I provided or rename the original one built into your rom. This would be the only duplicate file in your rom anyway, quite small indeed.

GPSAux.dll has nothing to do with ModDriver.

There should not be any copy of GpsMod* or MachCell* in your ROM since they would be replaced on "install" anyway (duplicating the memory used).

If you really want to include ModDriver (and MachCell) in a home built rom, you would include MY GpsApi.dll, GpsApiOrig.dll, GpsModDriver.dll, GpsModSettings.exe and MachCell.dll and leave them in the windows folder (default for all rom files). Create a shortcut in start menu\programs to GpsModSettings.

Copy the registry keys from an installed copy of ModDriver from HKLM\Drivers\Builtin\ModDriver, change the driver dll from \Program Files\ModDriver\GpsModDriver.dll to \windows\GpsModDriver.dll. Use this as a registry entry in your ROM. Use HKLM\Services\MachCell as another registry entry in your ROM, but also change the dll path from program files to windows.

Copy the HKLM\Software\Mach2003 registry to the rom.

ModDriver is a work-in-progress and building it into the ROM serves no real benifit (5kb less used space). Any upgrade you installed later would waste the space used by all ModDriver componants since they all would be replaced with new versions (and the ROM versions would still exist, wasting space).

I'd need all the expanded log files from device\Mach2003 captured during the time the Driver is no longer working to see why it stopped working. But, then again, if you are using 3.20, I might not be able to help much (since my code is all converted to 3.4.x now).
[Windows Mobile Apps and Games] Mach2003:
Your COM2 can not be opened by GpsApi.dll. This indicates that another device might be using COM2 before ModDriver can "get a hold" on the port. When you use GPSID, my gpsapi.dll passes the calls back to the original driver (since it can't communicate with ModDriver).

You can try to find another free COM port for ModDriver to use. I have all the ports re-assigned differemtly from factory in my rom, so can't help too much, but one good place to look is the COM port used by USB. It is assigned COM1, but can be changed to COM0 in registry, and then change ModDriver's port to 1.

OR you can find out what is using COM2 and change it. A good place to look for this is a Bluetooth outgoing port.

Quite a long time ago I posted a CAB to this thread that re-assigns all the OmniaII's com ports used, removes the redundant ones, and moves GPS to COM8 ,and ModDriver to COM7. I end up with COM1, COM2, COM4 and COM6 free, and then use COM2 for my BT GPS outgoing port.

LASTLY you may have some other issue preventing ModDriver from loading at all. Run ModSettings and see if you get live GPS data there.
[Windows Mobile Apps and Games] omek07:
Mach2003's

Thanks your the 3.4.2 version

I have a provlem with my btgps.

When i use the msapi com port the gps is stable but when i use the com 6 which is for bluetooth the gps is not stable . I have connects and losts every 1 second.

I use the Igo 8 . When i put on sys.txt the com port 2 i have this problem. When i use directly the com 6 on my sys i dont have this problem.

Do you know anything for this problem ???
[Windows Mobile Apps and Games] Mach2003:
Does ModSettings have the problem when connected to BT (COM6) as input?
[Windows Mobile Apps and Games] lxng:
G-Sensor freezes

The g-sensor freezes after using this driver for a while on my HTC HD2. Has anybody had such problem?

I have tried gpsmoddriver versions 3.20 and 3.4.2 - no difference. No matter what navigation software I am using.

Any ideas how to workaround this?
[Windows Mobile Apps and Games] omek07:
I thing its worked but i will check it the afternoon
[Windows Mobile Apps and Games] IIIIIChrisIIIII:
Hi,

i have just installed the newest version and can't start the cell tower location service. I can press the "start" button as much as i want but nothing happens. Of course i am taping the "Service is Running Now" checkbox to refresh the state.

Can somebody help me please?
[Windows Mobile Apps and Games] Mach2003:
Does the g-sensor freeze for the whole device or just for GPS? Does the Compass continue to operate? Does it start working after a soft reset?

You don't need to "refresh" after pressing start, that button changes to "stop" if the service is running.

Do you have enable cell service checked (and do you have enable service only with GPS, normally unchecked)? What device and provider do you have? What ROM is installed?

You can post your device\Mach2003\ModSettup.txt file here. You can also enable logging and expanded and then soft reset the phone. Post the MachCell.txt file here.
[Windows Mobile Apps and Games] curtin88:
Hi Mach2003. I am also experiencing the same issue as IIIIIChrisIIIII.

I remember reporting the same issue for v3.4.1 but I was told by you that you had not changed anything in v3.4.1. As I am unable to get v3.4.1 working, I stick on to v3.4.0, which will function properly when the Service is running is checked, and "Start" will change to "Stop". But this does not happen in v3.4.1 and v3.4.2.

Just feedback to you.
[Windows Mobile Apps and Games] Mach2003:
If BT GPS does work in ModSettings then the issue is with IGO. IGO is not to smart, they read the GPS data one byte at a time. On slow systems it takes more than one second to read a whole message, causing new data to come in before the old data is read (resets the message to zero before it is fully read). Make sure your baud rate in iGo is as high as possible (115200).

It takes time to read the port. GPS application reads port via windows, windows reads the port vis service.exe, service reads port from my driver, my driver also takes some time to respond. The requested size of the read makes little difference to the time it takes. If GPS app asks for 1024 bytes it gets a full message (even though the message is much smaller than 1024 bytes).

In testing on my OmniaII, and from looking at other people's logs here, a read takes about 2 m/s in total. A message is about 500 bytes (500 * .002= 1 second). You can see that, if your device is busy, reading one byte at a time can cause problems.

I thought about skipping new reads when the prevoius read is incomplete, but then those systems would always be getting GPS at 2 seconds per reading instead of 1. This would cause lag time to increase (alternate) every other reading.

You could try setting SleepTime to 2000 instead of 1000 to see if it helps. (Or get a GPS application that is smarter).
[Windows Mobile Apps and Games] omek07:
bluetooth worked on ModDriver

I will try what happend if i change the sleeptime on 2000

What prog is smarter that igo ???

Hm i have and other problem

i connect the bluetooth and i got signal, so far so good , when i close the bluetooth the GpsModDriver stuck on com6 and it doesnt go to MsApi com port.

I have to soft reset my device . if i dont soft reset i will not have Gps Signal because the Gps Mod Driver stuck on com 6
[Windows Mobile Apps and Games] lxng:
the g-sensor freezes for the entire device. No gravity dependant functions are operating anymore. nether built-in (like autorotate) nor additionally installed. The firmware compass utility also shows strange values that are likely because of the g-sensor returning nothing, or some constant value (i.e. the compass shows correct direction when you manage to tilt the device to a certain angle).

After a soft reset the g-sensor start working fine again. And this can last for several days. But once I make my navigation software use the gpsmoddriver port, the g-sensor freezes in a few minutes.

I did not find in 3.4.2 the way to turn off the g-sensor scanning. So I unckecked the "portrait" and "landscape" options, which seems to have made the effect. At least the profiles did not change automatically when I tilted the device. I unchecked also the compass checkbox for the driving profile. With these settings I was able to successfully drive from home to work. (I assume that at a certain speed the profile still changed to driving).

For the walking profile I checked the compass checkbox and had a 30-minute walk. In the end of it the g-sensor was no longer working.

This may have been a coincidence. Or it is somehow related to the fact that the compass API also uses the g-sensor data. Thus, g-sensor freezes when it is being heaviliy used for a relatively long period of time. If so, this seems to be a problem of my device. Anyway, probably it could be possible to avoid this issue by scanning the compass and g-sensor less frequently?

if you'd like to use me as a test animal :) I could install a version of the gpsmoddriver with some additional logging turned on. just let me know :)
[Windows Mobile Apps and Games] Mach2003:
Had a thought while driving today:

Uncheck smooth when using iGo, then data is sent half as often.
[Windows Mobile Apps and Games] Mach2003:
The compass and g-sensor readings come from same sensor driver (HTC or Samsung supplied dll). The same handle is opened to read either sensor.

From user tests here, the compass does not use the g-sensor readings since it does not properly "rotate" on it's own, ModDriver must add or subtract 90 or 180 degrees to align the compass with the g-sensor.

There is no profile switch based on speed, only on g-sensor angle.

On the sensor page: Set NumAverages to zero, and uncheck enable portrait, and enable landscape to disable g-sensor. On each profile page uncheck compass to disable compass.
[Windows Mobile Apps and Games] Mach2003:
By coincenence I also was using my BT gps today, and had the same effect when I powered off the BT, I had to soft reset to go back to internal GPS. I must have introduced another bug recently as this was working just fine before...
[Windows Mobile Apps and Games] omek07:
Hm ok then its not just me.

Can i propose something ???

1: Can you add a automatic pop up window with com selections

What i mean

when the Moddriver start this windows pop up and on it we will can choose the com port (for example com 6 or MsAri) like manually selection the port which the program read the data .

But now i thought that if we loose the signal for the port which we Choose what happen ??? can we do it manually change the read com port (Com 6) and then when the gps loose Gps signal automatic search the others ports (com 2) and loop on this ???

And off course on settings some button with Disable/ Enable this Selection.

When is disable the ModDriver change the Port Automatic

When is enable then we can choose the com port.

This will solve (i thing) the problem with Com Ports

2: Can we do something to disable the screen off when we have open the moddriver ???

I hope understand what i wand to say.
[Windows Mobile Apps and Games] Mach2003:
Popup won't work, ModDriver is a device, it has no control of the screen, and no "window" to write to.

The port order number solves the problem anyway. Default is msapi at 1, comX (original port) at 2. You set the BT port as order 0. When BT is unavailable Driver uses msapi, it that fails it uses comx. If you have scan enabled, and you power up BT, MoDriver will switch to it. When BT fails, ModDriver switches back to masap (or comx) [except we know this last function is broken right now].

The popup would not solve the bug either, since we seem to be missing the dropped port in the first place.

I could disable sceen off and/or sleep when you are looking at ModSettings, but then it is not meant to be a GPS application (although it realy is one). I expect that you would be using a real GPS application not ModSettings.

If I disable screen off or sleep when ModDriver is running, that would be 24/7 since driver is ALWAYS running, although it some times sleeps. Again I expect that the GPS application will keep the device alive when it is reading GPS.

With Garmin Mobile XT, we can set it to keep the unit alive (on battery, on power, and when navigating). I allow the device to sleep when on battery, and keep it alive on power and when navigating. Since GPS is a real power hog, you'd soon have no battery if I kept the unit awake, and you left a GPS application running in teh background (without remebering that you did not close it).
[Windows Mobile Apps and Games] omek07:
Some times i want to see only my coordinates (because i am Surveyor) without open the Gps Program thats why i propose to add the non sleep.

i dont want to use this coordinates for critical jobs but i want to record sometime my position.

And know i thought something else .

Can you add a function to export on txt our location ??? :)

I know that you said "but then it is not meant to be a GPS application (although it realy is one)" .
[Windows Mobile Apps and Games] lxng:
1. I set NumAverages to zero and unchecked compass for both profiles and could successfully drive from home to work. The g-sensor is ok.

2. The compass in my HTC HD2 seems to use the g-sensor. At least the preinstalled compass application shows the correct direction both in flat, portrait and lanscape mode. Do I understand it correctly that unchecking the landscape and portrait boxes makes the driver not to add or subtract anything to the compass value but rather use it as is?

3. I set NumAverages back to 5 and checked back the compass box. Then I ran Ozi Explorer and then opened the HTC g-sensor calibration utility. And despite it had't frozen so far it seemed to me that the bubbles were moving sort of jerkily. Then I closed Ozi Explorer and after a few seconds the bubbles began to move smoothly. (The difference was not obvious, so this might have been the play of my imagination)

4. I think the g-sensor freezes not because of being polled to often but because of something else. I have been running today an inclinometer utility (Inclinometer77) which uses g-sensor very heavily but still it didn't freeze.
[Windows Mobile Apps and Games] Larry Brent:
Hello

always reading here from a compass function in GPSModdriver.:confused:

But where can i find it?

Can somebody please make a screenshot of the compass.

Thank you

Larry
[Windows Mobile Apps and Games] lxng:
I am observing the same issue with 3.4.2. The Cell Service is Running is unchecked and the Start button does not change the state.

I remember it was working fine with 3.20 and when I was in an industrial area where my gps lost the signal I saw that my detected location changed to something that looked like the nearest cell tower.

Where could I download version 3.4.0 from, so that I can test it?
[Windows Mobile Apps and Games] Larry Brent:
Works for me without problems.

Start cellservice - cellservice is running checked - button changes to stop.

Stop cellservice - cellservice is running unchecked - button changes to start.

Larry
[Windows Mobile Apps and Games] IIIIIChrisIIIII:
Enable cell service is checked.

Enable service only with GPS doesn't matter, tried both checked and uncheckd without success. My Device is a HTC HD2 with stuck ROM 1.66.407.1 (76641) GER.

I'm sorry but there is no MachCell.txt file on my device (used the search function of the Resco Explorer). Under MyDevice\Mach2003 there are the following attached files.

btw. this has absolutely nothing to do with a performance issue. IGO is working perfectly smooth on my HD2. However IGO has nothing to do with it, too because i think the service is not starting. I've just looked in task-manager under running processes. Could not find something like "*cell*tower*". What's the name of the service?

Thx for your help.
[Windows Mobile Apps and Games] trushna:
Hi!

I'm also experiencing the same problem with latest version, i have to stay with 3.2.0. Even if i enable cell tower service it doesn't start.
[Windows Mobile Apps and Games] mitsi:
Hi Mach2003, many thanks for your clear and detailed response. I very much appreciate the time you put in to sort out queries like mine!

Your program has been working great recently, but if it should crash again, I will check the log file & see what is going on.

Many thanks again.
[Windows Mobile Apps and Games] bartvdv:
Same machCell 3.4.2 problem here ... not running, no machCell.txt and start at 00:00:00 00:00:00

installed 3.4.0.0 and machCell is up and running again
[Windows Mobile Apps and Games] lxng:
could anybody give me version 3.4.0? this is the last chance for me to have workable cell towers service and not using the g-sensor which hangs on my htc :(
[Windows Mobile Apps and Games] MenosOcho:
someone can post the 3.4.0 version?

i've a Samsung Omnia II i8000 and it doesn't work with 3.4.2, service doesn't start.

GPSMod is installed on MyStorage (no removable memory)

thanks
[Windows Mobile Apps and Games] curtin88:
I am one of the users that couldn't use v3.4.1 and v3.4.2, and I found v3.4.0 is working OK.

For those of you who need this file, here it is v3.4.0 attached for your use.
[Windows Mobile Apps and Games] Mach2003:
Instead of quoting everyone since I was away, here are my comments...

Rarely does ModDriver / MachCell work from anything but DEVICE. I only provided that choice for those PDA's (NOT PHONES) that can not install to device since after every soft reset device memory gets wiped.

MachCell is a SERVICE it runs inside service.exe.

ModDriver is a device, it runs in device.exe.

Neither one is a "running process" or "application".

Some of you are having a problem with MachCell loading in the latest release, others it works fine. The problem is not with the "start/stop" button, just that the service is not loaded at all (so it can't start). I'll look into anything that could have changed (perhaps the 3.4.1 and 3.4.2 are missing the digital sognature).

ModDriver will log your position to a GPX file (this is a text xml file), enable Track Log on the system page. It also records your last position to the registry, look under HKLM\software\Mach2003.

IGo will not have anything to do with MachCell issues, but with smooth enabled you might get a bounce between signal and no signal every iother second.

The hardware Compass is inserted into the GPS data string as though it came from the GPS. If compass is enabled for the current profile, and your speed is below the "speed threshold", compass will be inserted.

Did I miss anyone???
[Windows Mobile Apps and Games] Mach2003:
Can someone with MachCell service problems check the registry under HKLM\Services\MachCell. Check the dll entry, and then ensure that file exists (\Program Files\ModDrover\Machcell.dll).
[Windows Mobile Apps and Games] bartvdv:
Both seem correct the file \program files\GpsModDriver\MachCell.dll exists build date 3-28-2011 10:19

The HKLM service points to \Program Files\GpsModDriver\MachCell.dll
[Windows Mobile Apps and Games] mitsi:
Hi Mach2003, my gps failed yesterday :confused: Would you mind checking my log files to see what happened please?
[Windows Mobile Apps and Games] Mach2003:
Too bad you did not have the expanded logs checked, without the extra details I can't see anything that went wrong. I do see that it went wrong, just can't see why.
[Windows Mobile Apps and Games] Mach2003:
Can you try replacing the dll with an earlier version's copy? You may have to rename the existing file, copy in the 'older' one, and then soft reset.
[Windows Mobile Apps and Games] curtin88:
Hi Mach2003. I had test-run as follows:

I installed v3.4.2:

1. I had checked the registry - it was correct, but the file MachCell.dll was found in the \Program Files\GpsModDriver directory.

2. I check the Menu-Extras, and check "Enable Cell Service", and also try to check "Service is Running Now". The "Start" button remains unchanged.

I extracted MachCell.dll from v3.4.1, and override the same file installed by v3.4.2. The test result is the same. "Start" button remains unchanged.

Then I extracted MachCell.dll from v3.4.0, and copy it to the \Program Files\GPSModDriver directory. After overriding the file, I activated the program. Bingo, I am able to check "Service is Running Now", the "Start" button changes to "Stop". When I uncheck "Service is Running Now", the "Stop" button changes back to "Start".

Thats mean MachCell.dll file in v3.4.0 is working and functioning well, except for MachCell.dll file in v3.4.1 and v3.4.2, they are not functioning.

I hope the above information is useful for your investigation. :)
[Windows Mobile Apps and Games] Mach2003:
MachCell problems

If your cell service refuses to load, try this cab.

I flash my phone, often enough, and loose my cell tower database every time I do :(. I had temporarily added code to 'merge' all the backup files I had into a single usable db file. I never intended that this code make it out into the public. My code works great, but only if your MCC is exactly three digits long. For those who have smaller code lengths, the system would crash.

Edit: see post 2114
[Windows Mobile Apps and Games] bartvdv:
same here,

Replaced the MachCell.dll 3.4.2 with MachCell.dll 3.4.0.0 and I get cell tower fix and it shows the service is running.

One odd thing I noticed the 3.4.0.0 package installs an altitude table ... 3.4.1 and 3.4.2 don't, it seems ...
[Windows Mobile Apps and Games] Mach2003:
The altitude table should be correctly moved to the card \Mach2003 folder.
[Windows Mobile Apps and Games] bartvdv:
3.4.3: I can start and stop MachCell.dll now but it isn't started by default had to start manually

But that was only once, now it starts every time I use GpsModSettings
[Windows Mobile Apps and Games] bartvdv:
It now is in that dir. and no longer in \Program Files\GpsModDriver\ and I didn't remove or move it ... maybe a 3.4.0.0 error
[Windows Mobile Apps and Games] Mach2003:
Do you have "use with GPS only" checked?
[Windows Mobile Apps and Games] Mach2003:
Earlier versions of the installer did not move the file to the card, as it should have. This was repaired with later versions.
[Windows Mobile Apps and Games] Mach2003:
This one should start cell service correctly if enable cell is checked (and not start it (yet) if enable with GPSOnly is checked)
[Windows Mobile Apps and Games] bartvdv:
Yep now it starts with machcell "on"

Both 3.4.3 versions moan about trusted installer ... ignored it both times
[Windows Mobile Apps and Games] omek07:
hello

did this version fix the bluetooth issues ????
[Windows Mobile Apps and Games] Mach2003:
Nope, sorry I have not looked into that one yet. Last Time I ran BT it worked as desired...
[Windows Mobile Apps and Games] bobzero:
Good post for i8000 users.
[Windows Mobile Apps and Games] curtin88:
Thanks Mach2003. This one works.
[Windows Mobile Apps and Games] Mach2003:
Moved 3.4.3 to first post
[Windows Mobile Apps and Games] Dreamleaves:
Hi,

I try to setup gpsmod3.4.2 to run on my device, a german O2 XDA (= Orbit - P3300 - ARTEMIS).

I'm a gps-noob, I read the postings in this thread for 2 nights but found nothing to solve the problem, I'am out of ideas. :confused: Can someone help me please?

If I use Port 4 in Igo or OziExplorer it work. But if I use Port 5 (gpsmod) the data-output looks like:

$PGRMT,LastKnown,0,2*0B

$GPGSA,A,1,,,,,,,,,,,,,,,*1E

$GPGGA,001843.290,,,,,0,,,,,,,,*7E

$GPVTG,,,,,,,,,,N*30

$GPRMC,001959.090,V,,,,,,,,050411,0.0,W,N*30

Line 3 and 5 differs some numbers but that's it, no sat's, no nothing.

ROM: wm6.5.3 from Shady313

Ports: (show'ed with Oziexplorer):

COM0: QCMD

COM1: Serial Port

COM2: XPanel

COM3: GPS Port

COM4: ActiveDevice

COM5: GpsModDriver

COM9: QDATA

GDP0: -

Settings/System/ext.GPS:

Software-Port: 4,

Hardware-Port: nothing, Baud 4800 ( I try Port 3 but dont change the problem)

Auto: Yes

I attach modsettings.txt and moddriver.txt, many thank's ...

-------

SaMMy
[Windows Mobile Apps and Games] Mach2003:
Is your device WM mobile 6.x?

1) Try unchecking the msapi port modsettings/menu/ports

2) Try deleting \{localized program files}\GpsModDriver gpiapi.dll, and removing \windows\gpsapiorig.dll