yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] peacock93:
Mach,

I've been running 3.1 a little bit today. I'm having a problem on my Sprint Touch Pro 2 where the GPS on COM 3 drops and then comes back on a few seconds later. The GPS data on COM 4, which is the actual GPS data port, stays steady all of the time. This problem did not occur on 2.6 or earlier versions. I just wanted to let you know. If you need me to try anything let me know.

peacock93
[Windows Mobile Apps and Games] Mach2003:
Neither MCC nor MNC can be zero. The first three digits of the short operator code ([450]00) are the MCC, the remainder, up to three digits, are the MNC. I see from a quick wikipedia search that, in fact, China Moble has MCC = 460 and MNC = 0. I'll have to work out a patch to allow a valid zero to get through. I have seen these values as a zero in error as well, so have to come up with a positive way to tell if it is a valid zero. Stay tuned.
[Windows Mobile Apps and Games] Mach2003:
Thanks for you support :)

Just to see, try enabling msapi under ports, and set it to a lower number than COM4.
[Windows Mobile Apps and Games] cybero2912:
the last problem I reported was maybe my fault (did not wait long enought before I received fix from sat)

now only a simple/stupid question: in version 2.60 in sat view the found sat's were numbered - in new version 3.10 the circles for the sat's are empty
[Windows Mobile Apps and Games] peacock93:
Mach,

So far this seems to have worked.

Will you explain what the "Fix" check box and the "Order" value does.

I un-checked "Fix" next to COM 3, "Enable" was not checked by default and it had 99 for the "Order" value. I then checked "Enable" and "Fix' next to Msapi and put 3 as the value in the "Order" area.

peacock93
[Windows Mobile Apps and Games] dampam:
Please share with us how to minimize the spin when you have the opportunity to look at this.

On the Cell tower, how are the position of the towers determined ? Is it true that the position of the towers would be closer to the true location if measurements are done repeatedly around the towers over time ? Will indoor towers/ cells be captured as well ?

Can you explain the purpose of the "update" button i.e when will the tower locations be "un-resolved" and how will internet help to resolve the locations?
[Windows Mobile Apps and Games] Mach2003:
Yes I noticed that bug on my Diamond too, it did not show up on my Omnia. Fixed for the next update.

COM3 is the output port, it can't be selected as an input port, thus the inability to check it, and 99 order.

Fix allows you to select which ports get the mod driver fixes (speed, course, lag...), some external (Bluetooth) devices don't need fixes. If you have more than one device enabled, driver will look for inbound data in "order" lowest first.

Sure, but go ahead and try tweeking those values yourself. For me it is a minor anoyance and thus a low priority item.

When your phone changes cells, MachCell looks for current GPS position first, if you don't have GPS on (or fixed), then it looks up the cell using the "well known" G-MAPS web interface, finally that failing it uses a less documented G-JSON web page. No averaging is done, so no, seeing the same tower another time, will not increase it's accuracy, we will update the cell's position to a new GPS location, if available, though.

In case you are wondering: G-MAPS uses some user's GPS recorded position of the cells, not the actual tower locations (at least around here) too. G-JSON has a method to send GPS location back for unknown towers, but in my testing the cell GPS locations were not updated using this method, so I removed the extra internet calls.

You know what the big G stands for, right, I'd rather not draw attention to it here, they could disable the interface and then we would have to use another way less global provider like OpenCell.

If you are not using GPS, or don't have internet data turned on, or data is not available at the time you first see that cell, it is stored as unresolved. This prevents internet lookup of the same cell over and over again on the device. The update button scans all unresolved cells, and looks them up on the internet using the same two locations above. Cells still unresolved (because G does not know of them, and you don't use GPS), remain unresolved, and unusable for determining location. These cells may become known at some time in the future.

All cells are retained, indoor ones included. If you don't have GPS fix we use the internet to resolve them, as noted above.
[Windows Mobile Apps and Games] omek07:
Mach2003 thanks again for your work

Could you please provide here your settings for omnia II

I have see that you have omnia II

Thanks you very much
[Windows Mobile Apps and Games] Mach2003:
I am using all the installation defaults on the OmniaII, except Lag Advance is set for 1500 ms. Did you think I would have the defaults set to something I did not use :):):);)
[Windows Mobile Apps and Games] cybero2912:
thx a lot Mach2003
[Windows Mobile Apps and Games] Dunc001:
Advice please !!

I've been reading through this thread for hours now, and also GPS lag fix thread and more and have completely confused myself. Mach, can you basically tell me if I need to do anything other than install the GPS Mod Driver (which I have done) and set com port to 3 in relevant apps (GoogleMaps, Igo, GPS Trackah). Also, can you tell me what baud rate I should set as I forgot to note down what the post-install pop-up told me (ooops!).

Once I've done whatever you advise can I forget about any other GPS tweaks, registry entries and lag fixes found elsewhere on XDA?

I use igo8, Google Maps, GPS Trackah and GPS Weather Radar. I update QuickGPS every few days and have had your mod installed since last week. I find a massive difference in fix times between these apps - igo and Trackah seem to get a fix in around 30-40 seconds but GM and GPSWR can take a couple of minutes some times (all outside). I am in North Yorkshire in UK.

Just looking for best possible GPS performance :D
[Windows Mobile Apps and Games] jacob101:
gpsmoddriver_1.51.cab, where to find?

I try to find "gpsmoddriver_1.51.cab". and it disappear,i search in all pages. or i don't know where to look.

please give me a link.

i need it for htc hd2

thank you

jacob
[Windows Mobile Apps and Games] Mach2003:
Basically you should be able to install the cab, and forget it. Use 115200 baud in your applications if you can. I don't see any way Mod Driver can supply a different fix time to different apps.

Current releases are on the first post of this thread (2.60 without direct cell tower support, and 3.10) hd2 uses the one without the 2003 in the filename.

I recently cleaned out all my old backup versions, so don't have them anymore.

When viewing the topic list of this forum, in the far right of each topic, there may be a paperclip icon. Use it to go to the Attachments page. There is a 1.52 beta in here somewhere.
[Windows Mobile Apps and Games] dampam:
I am using 3.10 on my HTC HD2 and find it way better than 1.51. Have I missed something in 1.51 ?

Anyway here's the 1.51.
[Windows Mobile Apps and Games] cybermaus:
You've been busy. Keep up the good work.

And more to come, keep it up!

Question about that though: Are you somehow hacking into the GPSID drivers, or is it the intent that GPSID is simply set to read your port, and you are reading the real hardware GPS port? Or to put it in another way: I suspect this will not be compatible when its an integrated GPS that has no real hardware port?
[Windows Mobile Apps and Games] Mach2003:
It's realy quite simple to do, now that I had the idea...

I wrote my own "gpsapi.dll" that uses ModDriver as it's source port, reading raw GPS_POSITION data via the COM interface. I also install a copy of the original Microsoft version of gpsapi.dll (renamed to gpsapiOrig.dll) so that ModDriver can use it as an source port to read the original GPS device. Any application that uses the API will use MY dll instead. Gpsapi is a Microsoft SYS file. In the twenty or so sys's that I have here, all are the same, HTC and Samsung sources.

So far I have no issues with this build here. Garmin Mobile XT is happy to use the GPS Intermediate Driver, and no longer needs QueStub. Garmin even re-connects to Mod Driver after a sleep cycle on the device (it reverted to the original port before gpsid mod, even with QueStub).

FYI: All internal GPS's have a hardware port. Some use a COMx interface some use GPDx:, some use GPSx:. The 'external gps' control panel may or may not have an entry for the original interface port. I could never determine reliably how to read these ports as a source though, none that I have tried use NMEA data, and the IOCTLs that are used are rather cryptic. see HKLM\Drivers\BuiltIn\GPSID for your "port" and "dll".
[Windows Mobile Apps and Games] Mach2003:
Beta Build, with gpsapi support

This public beta build adds support for using GPS Application Program Interface to Mod Driver. With it you may select GPSAPI as an input port in YOUR APPLICATION, and have data come from ModDriver instead of the original internal port directly. You may still select msapi as an input port withing mod settings/ports page, Mod Driver will read the internal port properly.

This version will install a new gpsapi.dll that comes in your ROM, factory or not. It will also copy (renamed) another version of the same dll to your device. ROM file will still exist so that uninstall *should* restore the factory dll :)

I think this version should give GPSAPI support to those devices that did not have it installed natively (WM5), but do not have the "2003" version built for you yet.

Change Log:

- Full support for GPSAPI reading of Mod Driver

- Add Compass speed to compass page (instead of fixed 5 kph)

- Allow compass enable-disable under each profile

- Auto profile switch, based on orientation and angle, extras page, new section

- Together they allow disable compass under driving, and auto selection of driving when phone is craddled

- Re-did all the sensor reading stuff, mostly effecting HTC

- Compass Page is now always enabled

- Fixed msapi input without logging enabled would fail

- Changed auto profile to use last sensor reading only in its decision

- Fixed Smooth flag not being saved

- Fixed Compass not update under smooth=on (time to long)

- Way less registry re-loads should result (fewer switches)

- Bumpy roads still muck it up, need to do something (average?)

- Fixed MachCell update logging flag on/off, on main settings save

Have, fun, report any problems here.
[Windows Mobile Apps and Games] omek07:
thanks

I will try it on my omnia II and i will tell you

Thanks again
[Windows Mobile Apps and Games] omek07:
Hello again

I install it and i have some questions

1: I am trying to change the profile to Driving but it always change to Walking is this problem ???

2: What it has to write here ? (look image 1)

3: i have check it correctly here ??? in the order what i have to put ( look image 2)

com 7 is the default com of omnia II

When i open the program i hear beep what is that ???

every time when i do a change i hear a beep !!!

thanksssssss
[Windows Mobile Apps and Games] Mach2003:
Auto Switch Profile based on angle in new extras item. If you hold the phone like it was docked in the car (less than 15 degrees from true "up"), it should change to "driving". The landscape and protrait toggles enable or disable this feature. I have since changed my angle from 15 to 20 degrees, helps with bumps in the road while docked. The magnetic compass is useless in the car, this feature enables "auto compass off" in the car, and auto compass on when walking, assuming your enable compass boxes are so checked under the two profiles (plus the other profile tweeks).

You can enable msapi, at a lower order than COM7, it is more efficient. Both msapi and COM7 should have fix checked. The "fix" check and order "99" beside COM2 is ignored, this is the input port to ModDriver.

Beep on first read of the input port, or change of port. Another beep when that port gets actual fix.

In case you are confused a bit. None of these settings effect the new GPSAPI feature. This new feature is used by changing your GPS application to use the GPSID port instead of the COM(7) port. Garmin Mobile XT calls gpsapi "GPS Intermediate Driver".

edit to add:

By default OmniaII uses COM9 for communication to the ril itself (Hardware port), COM7 for external GPS (Software port), and COM4 for Mod Driver (as far as I remember, I remap all these ports, and remove those extra useless ports consumed on the Omnia). You might have changed a couple of these yourself or perhaps, your defaults were different than mine. It looks like your extenal GPS is set for COM2, and Mod Driver is installed on COM7.
[Windows Mobile Apps and Games] omek07:
Yes you are right for the com's

The checks on the port tab I put it myself and i dont know if it right !!!

What do you mean external GPS ?? you mean the build in GPS ??? or something else ????

if you mean something else i dont have it , i have only the build in GPS...

What i have to check on Port Tab or i dont have to check anything ???

When i install the GpsMod it show me that i have to go in my GPS prog and change my com to Com 2....
[Windows Mobile Apps and Games] Mach2003:
Samsung Omnia "remove extra useless ports" mods:

Note that the [-keyname] normally does not work as a reg import, because these kets are locked, you have to remove all the values individually under these keys.

[HKEY_LOCAL_MACHINE\Comm\NetworkPolicy\Irda]
"Disabled"=dword:00000001

[-HKEY_LOCAL_MACHINE\Comm\IrDA]

[-HKEY_LOCAL_MACHINE\Comm\Irsir]

[-HKEY_LOCAL_MACHINE\Drivers\BuiltIn\IrCOMM]

[-HKEY_LOCAL_MACHINE\Drivers\BuiltIn\IrCOMM\Unimodem]

[-HKEY_LOCAL_MACHINE\ExtModems\GenericInfraredModem]

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial0]
"Port"="COM3:"
"Index"=dword:00000003
"Prefix"="COM"

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial1]
"Port"="COM5:"
"Index"=dword:00000005
"Prefix"="COM"

[-HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial2]

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\VirtCOM]
"Dll"="rilgsm.dll"
"Index"=dword:00000009
"Order"=dword:00000002
"Prefix"="COM"

[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Serial_Class]
"Index"=dword:00000000
"Prefix"="COM"

[-HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\USBSER_Class]

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver\Multiplexer]
"DriverInterface"="COM8:"
"MaxBufferSize"=dword:00000400

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver\Multiplexer\ActiveDevice]
"Index"=dword:00000008
"Prefix"="COM"

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\ModDriver]
"Index"=dword:00000007

[HKEY_LOCAL_MACHINE\Software\Mach2003\GpsModDriver]
"PortConfig"=hex:00,00,00,00,01,02,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,02,63,00,00,00,00,00,00,01,03,00,00,00,00,00,00,00,09,00,00
"GpsComPort"=dword:00000008

[HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\Serial\Ports]
"SupportedPorts"=multi_sz: "COM1",
"COM2",
"COM4",
"COM6"

This changes USB serial to COM0, BT uses COM3 (virtual network), COM4 (modem), and COM5 (serial inbound).

Ril still on COM9, Software GPS on COM8, Mod Driver on COM7.

COM1 serial bluetooth debug port, removed.

IRDA (no hardware installed on device) removed.

COM1, COM2, COM4, and COM6 available to other uses (including outgoing BT ports).
[Windows Mobile Apps and Games] Mach2003:
"External GPS" is the default name of the control panel application to set the internal GPS port, Samsung renames this to just "GPS". Samsung settings has the same information under Settings/Network/GPS/Connection "GPS program port" COMx, and "GPS hardware port", COM9.
[Windows Mobile Apps and Games] omek07:
thanks again

i have edit all this that you said on the previous post and now the port tab is like this is it correct?????

the only problem is that the

i cant found the

[HKEY_LOCAL_MACHINE\Comm\NetworkPolicy\Irda]

"Disabled"=dword:00000001

and the port on serial0 is 3 not 4

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial0]

"Port"="COM3:"

"Index"=dword:00000003

"Prefix"="COM"

and now it said lastknow (look image 2)
[Windows Mobile Apps and Games] Mach2003:
I thought i made that clear:

You should check beside msapi, it is better, and set its order to a number lower than COM7, default is 0 for both, so increase the order beside COM7 to "1". (leave COM7 checked). Check fix beside both msapi and COM7, that way if msapi fails for some reason, mod driver will revert to COM7 without loosing connection for long.
[Windows Mobile Apps and Games] omek07:
look again on my previous post please
[Windows Mobile Apps and Games] Mach2003:
Why is COM3 checked in ports?

If you have no Comm/NetworkPolicy/Irda, great I delete that key anyway.

Right, I did make that change on my device too, but missed it on the .rgu I posted here. Leave Serial0 as COM3. (I edited the original post).

You have to soft reset to make those registry edits take effect.

Edit: Check fix beside msapi, and COM7 besides unchecking COM3.
[Windows Mobile Apps and Games] omek07:
i dont know why is checked the com 3 !!!

on my serial1 i have this

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial1]

"Port"="COM5:"

"Index"=dword:00000005

"Prefix"="COM"

maybe you want to say Leave serial0 as COM3

Maybe because i have com4 for TMC ??? i dont know
[Windows Mobile Apps and Games] omek07:
and now its time to try it on the road ,

i wish to work correctly with no freezes because with 310 version i have freezes (5sec) on the move of arrow on gps program

OOOOoo and if you can tell me what is this LASTKNOW ??? its take time to live and show me Msapi
[Windows Mobile Apps and Games] Mach2003:
LastKnown is the previous GPS position saved by the driver, it is used to get an instant fix while waiting for the real gps signal to get a fix (when Cell Tower is not available/used).
[Windows Mobile Apps and Games] omek07:
thanks

please can you say to me what i have done wrong and on 310 version i had freezes (5sec) on the move of arrow on gps program ???

I ask you because if i dont fix this (problem with lag on omnia II ) i will break my mobile on the wall !!!
[Windows Mobile Apps and Games] Mach2003:
Send it to me, I'd love to have a spare to play flash-aholic with. I've had mine for two weeks now, and have already flashed a custom made rom.

I don't understand what you mean by "freezes on the move of arrow".

If you are reffering to Samsung Hardware Compass: Did you calibrate your hardware compass? Run mod setup (any compass enabled application will do). Rotate the phone on each of it's three axis' (flat like on a table, north, west, south, east, north) (portrait, pointed away from you, inverted portrait, pointed toward you) (flat pointed away from you, left landscape (except sideways), upside down, right landscape-sideways, portrait) Etiquette must be disabled for this to work, do one of these three times in a row, then do the next one three times..., you can move quite quickly, the whole thing only takes 5 seconds max..

Enabling the "fix" boxes will solve the 'normal' lag problem with GPS delay. Set lag time to 1500 for OmniaII.

Did you change the baud rate under settings/network/GPS/Connection to 115200 from the default of 4800?

Using GpsMod Driver, especially with msapi and gpsapi will speed GPS considerably.
[Windows Mobile Apps and Games] omek07:
i will try to explain what i mean

for example i have the igo8 open with good signal when i move the arrow on the map it doesn't move directly but i had delays 2-5 sec

do you understand ???

my English is not good but i try
[Windows Mobile Apps and Games] Mach2003:
I understand now. Try using it in walking profile (or by default now, while orientated so walking profile is used) and see if the effect goes away. I don't have this problem in either walking or driving profile, as set by the defaults (installer or defaults buttons). My HTC device had a 30 meter zone before I invented Mod Driver, that was one of the motivations to create this (evental) monster.

edit Did you apply some of the other mods floating around for "fixing" GPS?
[Windows Mobile Apps and Games] omek07:
No no because i have install my own rom since 5 days and i dont have do anything

Do you have any good mod to fix the gps ????
[Windows Mobile Apps and Games] Mach2003:
All the "good" mods are built into Mod Driver, except the 115200 baud I mentioned, and the registry for changing the extra buffer size I posted above.

Of course using aGPS and Xtra is highly benificial if your provider supports it (mine does).
[Windows Mobile Apps and Games] omek07:
Ok

i will try it tomorrow on the road and i will say to you the results

now i am going for sleep because here is 01:35 ...

Thanks for your help my friend

CU
[Windows Mobile Apps and Games] pajaro:
Hello, first to say thanks for your work =D

I need some help. I've been trying to run gpsmoddriver but i had no luck.

I'm using Htc Diamond. I installed GpsModDriver_310.CAB and I use ttn7.917.9186.

If i dont use gpsmoddriver tomtom works, but it has about 300meters delay respect to real position (which makes it nearly useless).

After install gpsmoddriver, I select another nmea receptor 9600 baud. Then tomtom can only find 1 satellite but it never starts to work.

What am I doing wrong? any advise would be really appreciated.

As a second issue, I'm not able to make the compass work. It always shows grey on the menu.

Thanks for helping.
[Windows Mobile Apps and Games] Mach2003:
1 sat in view indicates you are using cell tower for position. Make sure you have selected ports( msapi and COM4, both with fix checked) in mod settings. Also wait long enough for fix.

Diamond has no compass hardware, you can not use compass without hardware.
[Windows Mobile Apps and Games] Nazar78:
Hi Mach2003,

Great to see you've got O2 now :)

I'm currently on Samsung SDK 2.2, GpsModDriver 3.10, Baud 152000 and all default cab install. No other changes to my O2 WinMo JB1 since I last tested your betas :)

I've just tested the v3.10 and have a few Qs below:

1) Not a big issue but just to report that the compass support & compass menu is not available on boot, I need to install that Security off cab.

2) Not a big issue also but if I turn away from the current heading, the compass will back off a few random degrees before resuming next heading. This is only affected in portrait mode. eg. current heading = 130 -> I turn right 150 -> reading will change to 125 then increase to 150. This is very obvious on maps or even GpsMod compass view itself.

3) Is there any way to filter the compass current heading fed to the gps output to only ie. 1sec? I've tried increasing the poll 50 to 1000 in compass settings but there's no effect. Especially when turning on a sharp junction the headings will lag behind as it's trying to animate the turn in slow motion. This is very obvious on maps or even GpsMod compass view itself.

Thanks Mach2003.
[Windows Mobile Apps and Games] Mach2003:
Couple of things on the O2 compass.

1) it does not work at all in true "portrait" mode, you need to be at least 20 degrees toward flat to get a stable reading from it. It acts like it would at the north or south magnetic poles. Compass is most reliable when used close to flat.

2) Calibration of the hardware compass is required, see a few posts back.

I never noticed the 'back off' thing, I"ll test with it tomorow.

Filter: Leave the poll at 50 ms, increase the averages, but don't exceed Sleep Time, or if smooth is enabled half of sleep time. (time = averages times poll). If the compass value changes more than (I think it's) 45 degrees, the average is discarded and restarted, so if you are moving quite quickly averaging is effectively disabled.

I have security off by default in my rom, so I don't see this problem, but I don't understand it either since I have signed all the dll's and apps, and included the cert in the cab.