yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] Mach2003:
Understand that the ports page is the INPUT that mod driver READS for gps data. What you are talkiing about is the port that mod driver WRITES to as output. Mod Driver will write the exect SAME data to either GPSID or COM(1). It will also read (almost) identical data from MSAPI as it reads from COM(4).

Google maps (at least my copy of it) uses "Gps Intermediate driver" when set to "managed by windows".

If you read COM4, then Mod Driver is not being used at all.

The reported accuaracy of the position is not a valid factor, I could change the HDOP value to 0.1, and get you a 0.3 meter accuracy report, without altering your position at all. Look for the indicated position on the map compared to the real world location, especially while moving.

As long as GpsMod Driver is in the loop, either by using GPSID or the correct COM port, the position will be exactly the same. The only difference is that GPSID uses less CPU time, and is un-affected by baud rate. Same with MSAPI, less CPU time and un-affected by baud rate on the input side of Mod Driver.

I know the terms "msapi" (Microsoft Application Program Interface) and "gpsid" (GPS Intermediate Driver) are actually the same api. I named it that way to differentiate input and output from my drivers point of view.

The phone's Radio layer actually calculates the position from the sat info. OEM provides a driver to read the RIL layer through a device (GPSx:, GPDx: or COMx: ). M$ layer reads that data as a GPSPosition structure (raw data). MS (or the OEM driver) either translates this data into a NMEA text string for COM access or passes the data directly to the reader (MSAPI). When Mod Driver is the "reader" of the M$ layer, using msapi does two things: M$ does not have to translate into NMEA, nor handle COM port overhead, AND Mod Driver does not have to decode NMEA into usable data. Mod Driver also has the same benifit on the output side: If your application uses GPSID, Driver does not have to translate GPSPosition data into NMEA text nor to deal with the COM port overhead.

RIL->GpsPosition->M$->(DriverMods)->Application->Map

or

RIL->GpsPosition->M$->NmeaText->Comx->GpsPositionFromNmea->(DriverMods)->Nmea->Comx->Application->GpsPositionFromNmea->Map

Bottom line: Use msapi as primary port in Driver port page, and use GPSID in your application whenever possible.
[Windows Mobile Apps and Games] RoryB:
Thank you for the help. Sorry I am so dense on this.

I have saved my Google Map GPS settings to be "Managed by Windows", my Bing Maps GPS settings to be "GPS Intermediate Driver" and my External GPS to "Manage GPS automatically". Next time I am out I will watch the map for accuracy in showing where I am instead of Google's location within x meters.

Thank you again.

UPDATE: Google Maps did very well. Every time I was crossing a landmark, it had me there. Bing seems to be just as accurate, but it is very slow to refresh the map so if I am moving faster than about 20 mph it lags behind me. Now I am off to see if there is a setting to improve the map refresh rate for Bing.

UPDATE 2: I cannot find a way to get Bing or Google to orient, but I guess I could disable rotation in Gyrator2 and just turn the phone.

Also, I had to manually set the MCC value to 310, and I see it now in the registry settings for GPSMod. Should there be a registry value that has the MNC value? I do not see one, but I have found my MNC in HKCU\Control Panel\PhoneExtendFunction as MCCMNC=dword"0x0004bc8a"(310410) and MCCMNC_SZ="310410"
[Windows Mobile Apps and Games] eriche:
some compass troubles

I already had a past version of GPS MOD Driver installed on my HTC HD2.

Now I upgraded to the actual 3.16

When moving everything works like before.

BUT

The main feature why I will use the moddriver is the Compass feature when not moving ;)

When I stand and turn around the compass in the GPS MOD compass view freezes :eek:

Only when I start moving some seconds its working again - like there is no hardware access,...

When switching to the compass tool on my HD2 it works perfect when standing and just turning around :rolleyes:

I also tryed the "

calibrate

" stuff.

BUT always got "speed doesn`t matter"

Why this - what I am doing wrong :confused:

It would be so great for geocaching if the compass would work like it should with your MOD driver.

Hopefully you can help me.

GreeT`s Erich
[Windows Mobile Apps and Games] aaa408:
same thing for me (hd2). calibration work strange starting from 3.13 (same thing on 3.16) - says speed does not matter always. checkbox on driving-walking behaves strange ( i have removed using auto switch for portrait and landscape modes ), but unabel to switch between modes manually. and starting from 3.13 footprints (this is htc app using camera with gps on) gps coordinates are not working. trying to understand why ... for now, seems like some incompatibility between original htc intermidiate driver and gpsmod one...

so for now i am stying on 3.10
[Windows Mobile Apps and Games] Mach2003:
I can see the bug with auto rotation off here, for now do not disable auto rotation, you can set the angle very small (1 degree), to stay in walking profile, or very large (89) to stay in driving profile. I'll look into it.

Make sure the "compass" flag is checked in the current profile, if not then the compass hardware will not be used. Without the hardware "on", calibration will fail.

The footprints issue is strange. Current (3.11 and newer) mod driver replaces the microsoft system gpsapi.dll with one that reads mod driver instead of the internal gps. First I find it strange that footprints would use the ms api, and not read the HTC driver directly. And second, the api only has four exported calls, and I support all of them. I'll see if I can IDA the program from a leo dump I have here, if I can find it in there :)
[Windows Mobile Apps and Games] Mach2003:
I never saw any examples of the MNC missing from the RIL data, but did see one USA provider that was missing the MCC. You could "export" your cell tower db, and then look at the GPX file created to verify that your MNC is in there, or eneble logging and then inspect the MachCell.txt file.

ps: Your quoted MCCMNC_SZ is missing a zero, it should be "310410"
[Windows Mobile Apps and Games] RoryB:
Here is my gpx file and I see 410 a number of times in it. The Log also states the MNC is 410.

31410 was a typo. I fixed previous post to 310410.
[Windows Mobile Apps and Games] Mach2003:
Yes your MNC is properly set to 410, no problem here.
[Windows Mobile Apps and Games] blackmeto:
Thanks Mach2003 your app has really brought my omnia into the new age lol as long as there isnt any significant battery drain.

Now i can post this here:

perfect for omnia should be the same for any winmo device theoretically

Instant Gps For All!!!!!!!!!!

change these keys

HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver\Drivers\Samsung GPS Hardware\InputBufferSize: set from 4096 to 512

- HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver\Drivers\Samsung GPS Hardware\OutputBufferSize: set from 4096 to 512

- HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver\Drivers\Samsung GPS Hardware\SleepOnNoData: set from 100 to 0

- HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver\CurrentLogFile: set from CurrentLogFile to Blank (set string value to blank)

- HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver\OldLogFile: set from OldLogFile to Blank (set string value to blank)

make a new dword value that reflects this key

- HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver\Multiplexer\MaxBufferSize: set from 16384 to 1024

4. Switch off and on or soft reset.

then install the cab from this post GpsModDriver_316.CAB (i figured it was the latest one so thats the one i used)

i installed it and then cleaned my registry just to make sure there were no conflicts (dont change anycom port yet even though it tells you to)

i then opened gpsmod from the start menu

then i went menu>system

under gpsmod driver i changed

sleep time to 0 (dont know if it stuck, went back in and it was 400 so maybe i didnt change it the first time but i am now)

commtimeout to 0

keepalive stayed at 15000

com 1 enabled

under internal gps device

sleeptime to 0

poll rate to 100

input buffer to 512

output buffer 512

comport 8 enabled

the reason y i didnt change the com port like it told me to is because the only gps app i use that doesnt using the intermediate gps driver by default is garmin . so i went into garmin and changed it to gps intermediate

the only thing ive noticed is when gps starts up the phone now beeps a couple of times until i get into my gps app (pass the disclaimer) and can show me that its locked

TRY IT AND TELL ME IM LYING
[Windows Mobile Apps and Games] Mach2003:
The Samsung GPSID keys will not help a non-Samsung device

Never set sleep time to 0, it will default back to teh minimum of 400 ms, and that is just too fast for our devices, 1000 is teh perfect number

A single GPS string fits (mostly) in 512 bytes, but 1024 bytes buffer size allows room for missing a read (two strings). I recomend keeping the default value of 1024.
[Windows Mobile Apps and Games] Mach2003:
- HTC "footprints" does use the GPSAPI to read the GPS, so is reading the newer versions of Mod Driver. It looks like there is some test that verifies that HTC device is used before it allows reading gps. I'll have to try and debug it a bit more to see what can be done, but I suspect that the Device string of "GpsModDriver" is the reason HTC rejects my driver.

- I found the problem with switching off auto-profile, look for another update soon.
[Windows Mobile Apps and Games] Knackwurster:
This Mod driver is great but after soft resetting my phone, the driver does not work anymore on my Omnia i8000.

I made a Screenshot oft the "GPSModSetup" after soft reset, look below. There are no more informations to see.

What Do i am wrong?
[Windows Mobile Apps and Games] Mach2003:
What port is ModDriver installed on (from the installation CAB)?

What ports are selected under ModSettings/menu/ports?

What ports are listed under SamsungSettings/Network/Gps/Connection?
[Windows Mobile Apps and Games] Knackwurster:
COM2

COM4 (clamb @ Enable & Fix)

Soft: COM4

Hard: COM9
[Windows Mobile Apps and Games] Mach2003:
That should work (as long as COM2, and COM4 are not being used as another device), try checking msapi, and fix beside it under ports to see if the issue goes away.

I map all my ports on the Omnia to non-factory values, so can't compare, but as far as I remember, the COM2, and COM4 are the "working" factory default ports.
[Windows Mobile Apps and Games] mpxxl:
Is it normal to autochange to walking profile? I can use only walking profile. My phone is omnia 2
[Windows Mobile Apps and Games] Mach2003:
Auto-Profile is the default setting (and the only one working in the latest releases) Hold the phone directly up (like it was in a car holder) in portrait or landscape to see driving profile in use.

See a few posts back for a work around until I get the next update posted.
[Windows Mobile Apps and Games] eriche:
not working on my HD2

maybe I am the only one where GPS Mod driver is not working like I supose on my HTC HD2 - but maybe others aren`t using it on the HD2.

In previous versions I got a 2d fix with 1 satelite even if I had no GPS (in buildings).

But with 3.16 I get 0 of 0.

So google map can not display the cursor,...

my other settings

please tell me what I sould try to get it work.

Or doesn`t the compass feature work without GPS fix at all:confused:

GreeT`s Erich
[Windows Mobile Apps and Games] Mach2003:
Your compass is working fine in those pics. Cell tower location (2d fix on 1 of x sats) only lasts for some (60) seconds when no GPS fix is obtained. This is by design so that you know GPS is not working (as requested by users on this thread).

Close ALL gps enabled applications (including Google Maps), wait more than 15 seconds, run your GPS app (GM, and/or ModSettings) see that Cell Tower location will be used for up to 60 seconds before the 0 of 0 message shows.

In some earlier versions, you could disable all input ports to stay on Cell Tower location alone (all day), but the latest versions will not allow NO input ports to be selected (the default settings kick in). You could try enabling a port that has no device at all on it for now.

I have plans to include an option to allow Cell Tower only to be used in a future release.
[Windows Mobile Apps and Games] Mach2003:
New release

3.17 on first post.

Fixed footprints GPS,

Fixed Auto-Profile disable,

Added abilty to select no input ports to use Cell Tower alone.
[Windows Mobile Apps and Games] eriche:
Thank you very much for your effort ;)

This I don`t know how to do that :confused:

For me the checkbox "Enable Service, Only with GPS" under "EXTRAS" - should handle this?

When I remove the check - then it should use the cell service also when GPS is not available:rolleyes:

While writing this message - the compass was freezing again :eek:

My display is flickering - like the app tryes to hold the values new but nothing happens,...

One more thing - is there a way to see the version number in your app?

maybe you write the version number to the mainscreen I attached?

GreeT`s Erich
[Windows Mobile Apps and Games] Mach2003:
Use service only with GPS disables the cell tower detection service unless Mod Driver is running with a GPS application open. Could save some battery, but then cell towers you pass when not using GPS application would not be recorded at all.

On the ports page, you can now uncheck every port, this disables GPS but still enables Cell tower location thus enabling cell tower location to be used when 1) you have no physical GPS or 2) you don't want to use GPS, or 3) you temporarily can't get GPS fix. The 60 second time out on tower location is not used in this case, so you can stay on tower location all day.

It looks like your "compass" box is un-checked under walking profile.
[Windows Mobile Apps and Games] starbase64:
Hi,

v3.17 is fast and much better as previous versions.

with friendly greet

starbase64
[Windows Mobile Apps and Games] Knackwurster:
I found out the mistake!

I installed the .cab on the internal 8GB storage and not onto the devicestorage. Doh!

Installing it correctly solved the problem.

@Mach2003: Thank you for your work and this great Mod Driver! GPSGate or portsplitter are nothing against this! Great job, plz keep going on!
[Windows Mobile Apps and Games] RoryB:
It would be great to add a shortcut to switch on and off the GPS so you can run the shortcut to get the cell tower readings only and run it again to switch back to GPS. Hardest part I see is returning to the users' personal settings for GPS ports.
[Windows Mobile Apps and Games] Mach2003:
The cell tower location works for up to 60 seconds with GPS enabled (ports selected). When, in real world situations, would someone who had a working GPS want to use Cell Tower location for longer than a minute?
[Windows Mobile Apps and Games] RoryB:
I was thinking if I am stuck inside a building for the day and want to get local weather update through "My Location" weather it would use the tower data. I have found sometimes it takes longer than 60 seconds and a couple tries to get weather data.
[Windows Mobile Apps and Games] Homekino:
Hello mach2003,

i finally managed it to get a valid asl value in gps-track unchecking menu->extras> altitude fix and prefer gps.

But now I have a new problem, as the internal gps still makes me crazy at slow speed for example geocaching and walking, I want to use my holux slim 236 bluetooth receiver.

In Gps-Tracks, I can`t set up external gps with com port.

So I`ve set the com port 2 in gps mod driver at position 1 under ports.

The mod driver connects now, but often looses bluetooth connection to the mouse and I must reselect bluetooth device for that port.

With my laptop the bluetooth connection is stable with the mouse.

Must I change settings under system like poll rate etc ?

Regards,

homekino
[Windows Mobile Apps and Games] Mach2003:
The coordinates used by "My Location" (assuming you are not actually running that service) are the last known position stored in the registry, so there would be no need to refresh the tower or GPS location during the day while you are in the same city. In the event that you did not use the "GPS" anytime since you arrived in that city, before you went inside, then 2 seconds would be enough to get the current tower location to use for the rest of the day. The hitch here would be that you did not ever use GPS with the currently connected cell tower, and the tower location is not known to the internet. But then a longer connection time would not help here either, unless you switched to a known tower during the 'long' delay period.

In case you don't know: Mod Driver will write tower/GPS position for My Location based apps without the "my Location service" even installed, as long as the registry key exists at HKLM\Services\myLocation.
[Windows Mobile Apps and Games] Mach2003:
I have not given up on your altitude problem yet :) For the curious, his GPS reports a fixed, but rounded, seperation value initally, then soon changes to an un-rounded value. This tricks my logic into thinking his GPS is giving a changing seperation value, making me assume he has a different type of GPS unit.

How often does the BT loose connection? If you can run with extened logging enabled, and just after it looses connection, close ALL gps applications, and then email me the log files, I'll have a look to see what might be going wrong.

To try on your own, set sleep time to a sightly higher value (try increasing slowly by 50 m/s at a time). You could also try ComTimeout at 1000 m/s (or equal to SleepTime).
[Windows Mobile Apps and Games] cybermaus:
Noted. I guess we did not forsee that, did we?

If I remember our discussions correctly, it means your routines thinks it is not a separation value, but a full asl?

Are we talking about API or NMEA input? NMEA input is *always* separation, so I'll assume API input. And the idea to wait a number of cycles to stabilize the altitude and separation fields never made it to the code.

How common is the device Homekino has? Is it worthwhile to solve elegantly, or would a 'hidden' registry value to force the asl field type work? Like 0=auto, 1=separation, 2=asl, 3=awg84

Edit: Or maybe the 'prefer GPS' is already enough of a workaround, after all, the device does give separation info, when we originally set-out with this altitude stuff, it was to recognize devices that did not have any separation value, only later did we find we could calculate the separation a few meters better than working GPS devices. Since Homekino's device does have separation, its only a few meters that we presume we can do better, and not the full +/- 100 meters error range.
[Windows Mobile Apps and Games] Mach2003:
I am so sorry; Since I wrote that post, I looked into the issue more closely, and it only shows when Gpsapi is used as output. The problem is actually on my end, and effects everyone :(

I store the alt values in the format required for NMEA (left over from the original dependance on COM). When you use msapi as input I translate the alt and alt84 members to the COM style, after translating and injecting the table value if configured so.

When COM is used as output, no problem. When Mod Settings reads data from Mod Driver, it uses the previously documented "Read Raw Bytes" method, but then corectly uses the COM style altitudes.

The Gpsapi output, however, does (did) NOT convert the COM style values into the required GPS_POSITION style values.

I have a patch in the oven that should resolve it.

Homekino has a Samsung device, but I never noticed the problem here because all my Gpsapi programs ignore the alt84 element. I initially thought the changing alt84 value I found in his logs was from the GPS itself, but upon deeper evaluation I realized it was actually comming from MY gpsapi.dll.
[Windows Mobile Apps and Games] dampam:
Hi Mach2003

Once again thanks for the latest release 3.17. Just a thought, is it possible to enhance the navigation by cell tower mode in ModDriver to include a "car locator" capability to help to locate the parked car in a large in-door (basement) car park ?
[Windows Mobile Apps and Games] Homekino:
ok thanks,

i`ll try to change that values ...

I have another question :

what gpx-format you use in the log ?

I cant get this to google earth or other programs ?

How can I translate that to kml ?

Can you make other file names after restarting handy ?

Like ModDriverOutdate-time.gpx for example.

I think this is useful because else the logs are overwritten. Today I lost a over 1 mb log after crash of my hd2 because moddriver has overwritten the file...
[Windows Mobile Apps and Games] Homekino:
I just want to make a log with 3.17, but the setting "expanded" don`t stays, after set to on and reentering moddriver the hook at expanded isn´t there anymore ?

I have completly reinstalled moddriver with killing old settings, but the problem is still there.
[Windows Mobile Apps and Games] Mach2003:
Not a chance, cell tower location is not accurate enouph. All area covered by that tower gives the same position.

The extra logging flag is visible here.
[Windows Mobile Apps and Games] Mach2003:
In GE file, open the gpx.

Ill look into appending a number on these logs.
[Windows Mobile Apps and Games] RoryB:
I am running Gen.Y Manila "Revolution" R1.5 VGA Port which has weather with MyLocation. It uses GoogleLocationService and HTCGeoService to work. I do not have a mylocation value or key anywhere in my registry. I also tried just location in my search. There was no location value or key with coordinates either.
[Windows Mobile Apps and Games] cybermaus:
Actually, while I am not sure where to get the data, but I have found that Google Maps is able to get a better non-GPS position then just from the one tower. I live in a rural area, and Google is able to put me in a circle a few acres in size, and the center of the circle does not have any tower. In fact the closest towers I know about are several kilometers away.

I suspect they somehow (though secret API's?) get multiple towers with relative signal strength. Its still not enough for a car locator, especially since relative signal strength inside the walls of a parking building will be all but reliable. But the non-GPS position can be much better than a single tower location.
[Windows Mobile Apps and Games] RoryB:
I believe Google Maps triangulates with the towers it can see to get an approximate location. I am not sure if it stops at three towers, but I cannot imagine it could find that many more anyway.
[Windows Mobile Apps and Games] dampam:
Where I live the cell towers for each telco/ service providers will be at different locations within a building. Can this be one of the reasons and way that one can get multiple towers ?

I also thought that it will be very helpful just for the "car locator" to point you the (correct) general direction and/ or whether if you are on the right floor level, assuming cell tower at each floor has different IDs ?

Will it be useful if I start to log some indoor cell tower data for you experts to take a look if this is at all feassible ?
[Windows Mobile Apps and Games] dukee76:
No sat fix

I've been reading this thread for some time now and tried to make it work, but I can't. I installed it to my omnia 2, changed HKLM key for garmin and it recognizes mod driver port (com2), but i can not get it to fix satellites. In gpsmod setting screen it says "no fix on 0 of 5-12 sats(this changes)" and in satellite view I got one or two green lines and rest of red satellites and after 15-30 minutes still no lock. In garmin satellite view is the same - one or two lines and no lock. Very long fix time with factory setting (more than 15 min) was the reason for installing this but no improvement. I also checked that *#1472365# settings and that is as people say it shoud be - standalone, hotstart...Xtra setting enabled (and downloaded) makes no difference... How do you people get those fixes in minutes or seconds?????