yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] RoryB:
Sktools has a standard remove programs, which did not work and a harder remove that did.

Run Bing on GpsId, see if loss of fix still occurs

Still occurs with lag at 1000 or 100. Mostly shows up as a rerouting after I end up off the road. The interesting thing below did not happen, but I did not have any stops for this portion of the test.

Run Bing on COM1, see if loss of fix occurs

Still occurs with lag at 1000 or 100. Mostly shows up as a rerouting after I end up off the road. One intersting thing is one time sitting still my position jumped a little and it rerouted. This was the only test I received the searching for GPS message, but I could also have missed it on the others while driving.

Run Bing on COM4 (or what ever your original GPS port is)

Still occurs with lag at 1000 or 100. Mostly shows up as a rerouting after I end up off the road. One intersting thing is one time sitting still my position jumped a little and it rerouted.

All three seem to be the same. I'll try tonight on the way home with GPSMod uninstalled (by sktools) and let you know the results as soon as I can. It may be a while before I am ready to do a hard reset.
[Windows Mobile Apps and Games] Mach2003:
if COM4 Does the same thing then mod driver is not at fault, your gps is actually loosing fix.
[Windows Mobile Apps and Games] shahriar5252:
GpsModDriver's COM3 / COM4 problem in CDMA TP2

I installed your GpsModDriver v3.17 and v3.20 on my CDMA TP2 (stock ROM wm6.5 / HTC Sense 2.5 for Sprint). Both versions of GpsModDriver disable my GPS when I turn on native GPS-needing programs like Sprint Navigation, but Showaco’s Titanium Weather, which directly uses GpsModDriver’s API, does work. And GpsModDriver easily locks on to GPS satellites as it shows in its satellite viewing page.

When I install GpsModDriver, a window comes up and tells me to have all my GPS programs use COM3. When I go to either the device settings (Settings-->System-->External GPS-->Programs tab) or the GpsModDriver setting (Menu-->Ports), they both have COM4 checked. When I change both settings to COM3, GPS for Sprint Navigation temporarily works for one address routing. But if I exit Sprint Navigation or soft reset the device, somehow the values in both the device settings and GpsModDriver setting always change back to COM4, and Sprint Navigation is not able to get a GPS lock. This problem goes away when I uninstall GpsModDriver and change the device settings to COM3 for GPS use. Is there any way to fix this problem?

P.S. From what I read, GpsModDriver2003 v3.20 is for PPC2003, so I installed GpsModDriver v3.20 for my WinMo6.5. Please correct me if I am wrong.
[Windows Mobile Apps and Games] shahriar5252:
Showaco’s Titanium Weather can use GPS location that GpsModDriver registers to wm6.5’s registry. However, I need to turn on GpsModDriver for location update every time that I go to a new location. Is there a way for you to build a feature into GpsModDriver to turn itself on and off at adjustable time intervals to provide updated GPS-based location info without anything appearing on the screen?
[Windows Mobile Apps and Games] RoryB:
!@#$$%! Sounds like I need to figure settings to improve GPS lock on satellites.

I have seen suggestions of:

Disabling A-GPS

Disabling GPS logging

I thought these above are okay to leave alone, especially having A-GPS. I think the logging thing was to reduce lag of finding satellites. I have not done the above this time, but I think I did previously.

Change HKLM\System\CurrentControlSet\GPS Intermediate Driver\Drivers

SleepOnNoData from 1000 to 100

Create MaxBufferSize as 512

GPSOneDevice\PollInterval from 1000 to 100

GPSOneDevice\InputBufferSize from 4096 to 512

GPSOneDevice\OutputBufferSize from 4096 to 512

Change HKLM\System\CurrentControlSet\GPS Intermediate Driver\Multiplexer

Create MaxBufferSize as 512

It looks like your driver makes these settings or similar already.

Any other ideas to avoid losing GPS signal on the open road?

-------------------------

Found changing [HKLM\Software\HTC\SUPL AGPS]

---> from GPSMode=2 to GPSMode=4

Have to wait until I am traveling to see if there is any improvement.
[Windows Mobile Apps and Games] darthveda:
You should change the port setting in your GPS App to Com 3 or whatever COM GPSMod Stated. If it is not then leave it be. By changing GPS Port in System->External GPS, you are actually changing the program port of your internal device and not redirecting it to port which GPSMod uses.

@Mach2003, the problem you described for Omnia is the same I experienced twice on my B7610. After I moved into a forest where there was no cell coverage for my provide, there was GPS lock for few minutes and then it died. I never got a lock back till I reached an area which had cell phone coverage. This happened with GPSMod or without it as well.

Next time, I used a BT receiver and used GPSMod, I never lost connection and saved my battery life as well. I guess now it is only a problem with Omnia device and not a fault of Internal GPS devices on cellphone.
[Windows Mobile Apps and Games] Mach2003:
I need someone to send me a copy of the TP2's gpsapi.dll so I can debug it to see what I need to add to my version, as a result agps may not work, and any (specialized) application that depends on gpsid function calls may fail.

You can enable enhanced logging and send me a copy of your logfiles (while running the application(s) that fail, I might be able to find the issue.

As mentioned above, don't adjust the ports under external GPS manually. Adjust the port used in your application (if you can) to use COM3 as reported by the installer. If you application does not have a port setting, try using QueStub (linked in the first post to a later post)

All versions containing "2003" are built for PPC 2003 device compatablility, WinMo 6.x.x uses the standard build.

ModDriver's cell tower location (if enabled) will give you reliable city location. Make sure your mortscript is reading HKLM\Mach2003\CellTower, although HKLM\Services\myLocation is also used if it pre-exists.

Any GPS application will also get GPS position to the regies. Use mortscript to schedule one of yours (or ModSettings.exe) to run on a schedule, or modify your wheather script to call ModSettings 10 mins before your "update" time. I see that a background, quiet, autostop process would be nice though. I'll look at it next time I am muching around in there.

Disabling A-Gps is a counter productive idea, don't do it.

Disabling Logging, I've always done just to save writing to the "disk" for each message generated (waste of time), however I have read that some people think the log files are re-parsed to get an initial position to speed fix (I doubt this is true).

ModDriver will reset the GPSID time and buffer values as per your settings in ModSettings, if you want to try a shorter time-out or cripple the buffer by making it smaller than 1024 (or waste ram by making it bigger), do the change in ModSettings, so that it will use the "new" values as well.

I've never altered that key, but then I never had a fix problem on my Diamond (that key does not apply to the Omnia). I also think it will do nothing to effect loss of fix, although it may speed initial fix (or cripple it).

Do you live in moutanous terrain? Is your device placed near the glass on the car? Does your "mount" interfere with the antenae?

Correct :)

Thanks for your report, I guess Samsung overlooked this in designing the firmware (or drivers) for these devices. I thought of decompiling the drivers to see if I could patch it, but then I don't have that much free time on my hands (and I own a BT GPS). Curiously though if you are connected to both cell and GPS, and then loose cell coverage, GPS continues to operate just fine. It only fails when you attempt a "first" GPS connection while you have no cell coverage. Possibly even a GPS connection lives as long as there is no soft reset, when you are not covered by cell.
[Windows Mobile Apps and Games] shahriar5252:
My native GPS apps like Sprint Navigation do not have a way of changing GPS ports from within the app, so GpsModDriver must adapt to the system settings. In any case, I only want to use GpsModDriver to provide location info for Showaco's Titanium Weather Panel, and GpsModDriver does correctly provide the info to this app, but it disables Sprint Navigation. I think you misunderstood what I wrote in my post, so please re-read it if you need to.
[Windows Mobile Apps and Games] Mach2003:
i'm pretty sure I understand your post, perhaps My response did not include enough detail.

You can't change the input port to Sprint Navigation. If it were using a COM port for data, it would either be using a pre-set value (COM4) or using the value stored at system,settings,External GPS,Program Port (also COM4), so would not break by installing ModDriver (unless you changed the settings there). So therefor it must be using the Microsoft supplied (and well documented) GPS Intermediate Driver function (GPSID for short) calls (GPSOPenDevice, GPSGetPosition, GPSGetStatus) to read data.

With all newer versions of ModDriver the microsoft dll responsible for these functions (gpsapi.dll) is being replaced by a copy I created so that applications that use GPSID function calls will use ModDriver instead of the raw internal GPS data. In your case (as others with TP2 have reported here), the dll might have been replaced by the OEM to a different one than the one supplied my M$ (within the SYS), without a copy of that file from your device, I can't tell what I need to do to make ModDriver work correctly on your device.

The file is actually a module, so can not be copied from the device, even with Total Commander. I need the module (or converted file) from the chef who created your ROM.

If Sprint Navigation were using a COM port for input, and somehow no longer liked the original COM4 port (unaltered in any way by ModDriver, except for the buffer sizes and time-outs, then I sugested that you could use QueStub to start sprint navigation, as it swaps the "program port" to that of ModDriver during the time that Sprit Navigation is running, and then properly swaps it back to the default value. I know you really don't want ModDriver to feed Sprint Nav, but that's all I can recomend as a solution to your issues. FYI, QueStub can only work for ONE GPS application on any device.
[Windows Mobile Apps and Games] RoryB:
Okay, I have been leaving A-GPS running. I can try stopping logging later.

Okay, control things through GSPMod instead of fiddling with registry.

BAD key. No one else need to play with that one. After I changed and reset the phone, GPSMod found satellites, but never got a fix on them. As soon as I returned the value to 2 and reset, GPSMod quickly found and got a fix.

I am on the plateau in Lexington.

I have removed GPSMod to try Bing without GPSMod on the way in to work this morning. One thing I noticed in looking through my drivers in sktools after I removed GPSMod is I have GPSID_HTC.dll and gpssetting.dll as my driver files. Do you replace GPSID_HTC.dll in your cab?
[Windows Mobile Apps and Games] Bright.Light:
Is it possible to read in the registry:

- if GPS is active (0 or 1) (because applications have connected to the port)

- if the GPS has a fix (1) or not (0)

- If fix: heading, speed, height

I use Wisbar Advance Desktop and would like to see on my desktop if GPS driver is active/fix and the heading I'm going to. (I had this in Mortscript, but this would connect to the port, so if GPS was not active, it would be made active. That is not what I wanted)
[Windows Mobile Apps and Games] Mach2003:
Try reading new-to-you threads from the first post forward, instead of starting at the last post.
[Windows Mobile Apps and Games] micalb:
I like your app very much, lag is gone with 0.9 and lag set to 700 but....as soon as i stop or drive very slow the TT map is starting to rotate or sometime even completely reverse in direction, is there any parmeter to play with to overcome this problem ?
[Windows Mobile Apps and Games] Crescendo Xenomorph:
@Mach2003

I recommend you to use GPSTuner 5.4m for checking this driver as GPSTuner 5.4m is the most acurate GPS software (I had compared all the GPS software for WM and this GPSTuner 5.4m is the best. the v6.x of GPSTuner however, is the worst).

For me, the v0.9 still got spin effect. And I can ride a bicycle at 165Km/h... ^^

But after I update the registry DeltaDistance to 100, the spin effect is reduced. But still got speed when I'm rooting on the spot... ^^
[Windows Mobile Apps and Games] Mach2003:
All three of the Delta reg will help here, increase will reduce spin.
[Windows Mobile Apps and Games] optiknerv:
Could any one supply the original reg settings please. Set the reg settings to what was recommended and used the cab but it didn't work. Now quite often the route does not appear on screen in igo8 or very delayed worse than before. I want to restore them to what they were but im stupid and didnt write them down lol.

Never mind ive flashed a new rom by my wonderfull chef.
[Windows Mobile Apps and Games] frankkk:
@Mach2003:

Thanks for your fine work here:): keep it goin'!

I installed cab v0.9 also on my Topaz and it works but I also have the spinning problem. Which values for Deltadistance (20), Deltaspeed(20) and Deltatime(10000) are recommended here?

It also sets the lag too far in the future so I'll try to set LagAdvance (2800) to 2000.
[Windows Mobile Apps and Games] michael_l:
i can't upgrade, i can't uninstall

The installer says failed

i am using 0.8... does anyone have a hint?
[Windows Mobile Apps and Games] p50kombi:
Try SKTools

That did it for me :)

Good luck
[Windows Mobile Apps and Games] michael_l:
Thanks, SKTOOLS did the trick indeed.

Maybe the installer needs another look into?
[Windows Mobile Apps and Games] Mach2003:
Default Cab Values, right, I was going to update the first post with those. I've now updated first post with the correct default values..

DeltaDistance,20
DeltaSpeed,20
DeltaTime,10000
EnableDop,1
EnableCourse,1
EnableSpeed,1
EnableLogs,0
Flags,0
LagAdvance,2800

Trial and error. Others have increased DeltaDistance (remember it is meters of travel: 20 = 2,0 meters, 50 = 5.0 meters)

0.9 HAS an updated installer.

Often when it reports "unsuccessfull" on 0.8, it actually does install the update correctly. Once the install or upgrade fails once, then SKTools, or equivelent, is needed to clean it out.
[Windows Mobile Apps and Games] Ather:
here you go, a GUI to config this beautiful driver :D

(took me 10 minutes to make it lol...)

Copy to Device, and run it, voila!

Ps. it will load the already set values at startup

Coded under WM5 SDK, .Netcf2.0, tested on WM6.1 Emu :) and TouchHD running WM6.5

Peace
[Windows Mobile Apps and Games] Mach2003:
Great news, I have not had time to install and run it yet.

Things I was thinking of doing in the UI:

- Replace the existing "External GPS" cpl with the new UI, would need to be able to set COM port, index, and Enable flags under GPSID key.

- Include the other GPSID regies in the UI

- Use DeactivateDevice and ActivateDevice to reload driver if certain values changed (I have a reg to tell you what device name to use here)

- Warn the user if the port is open when changes are made, they will be ignored until GpsModPort is closed, re-opened

- I have code "on the go" to use ChangeInSpeed and ChangeInCourse to re-position the LagAdvance, so may have another reg or two to add in the near future.

- Add the UI to auto-run on first install. (I can just add your UI exe to the cab, and run it from setup.dll)

- Remember that some cooks will want an OEM package instead of a CAB.

Do you want to keep going with the UI?
[Windows Mobile Apps and Games] cbolumar:
Hi Ather , thanks for the tool, i have a problem in my touchHD 6.5 23071

I dont have the keyboard and because that i can't change the data.

Regards.
[Windows Mobile Apps and Games] billyJ:
i can't see keyboard neither.

should i change Lag Advance to make my position correct, because now my car is about 10 meters behind the arrow in TomTom on HTC Topaz?
[Windows Mobile Apps and Games] Mach2003:
Yup, the posted UI needs access to the SIP for Diamond to be usefull.

I don't use TomTom, and don't understand what you say: "because now my car is about 10 meters behind the arrow", try and explain this to someone who has never seen a TT screen.

If you are talking about comparing your position shown on TT to your actual position in tha real world, then LagAdvance adjustments (+ or -) will help you.
[Windows Mobile Apps and Games] Mach2003:
Teaser Post

Well over the last few days, I have been working hard on this driver.

I used HTCGpsTool to capture a trip that included slowing, speeding up, curves at speed, corners, you know all the normal real world driving stuff. I captured the original COM4 port data, so GpsModDriver was not included in the data.

I have always used these log files to test the driver using a Windows program, that can be debugged, since the PPC kernal mode driver is very difficult to debug. The windows program is built with the exect same code files as the driver is (gotta love M$ for making PPC and desktop use the same calls), except it reads the log file instead of the GPS chip.

I altered the driver to use Change in Course, and Change in Speed, when calculating the new position for LagAdvance. I set LagAdvance to 2000 in testing, and compared the track log of the original data to the output GpsModDriver would have done.

I am so impressed!!!! I can hardly see the difference between the original track log and the ModDriver one. I had EnableSpeed and Enable Course on, with the default settings for all the Delta values. I have no funny speeds or headings in the output data at all.

I said teaser post, because I have not compiled or tested on the PPC yet. I smell a version 1.0 coming soon, but for now look for a 0.10 within the next 24 hours.
[Windows Mobile Apps and Games] Ather:
@Mach2003

i'll try my best to continue with the UI ;)

@others, i tested in an emu so i used my pc keyboard, forgot about the sip :p

will release v2 soon :)
[Windows Mobile Apps and Games] Ather:
GPS Mod Driver UI 0.2

Attached is the Version 2 of the config tool, again, its coded under WM5 SDK and .NetCF 2.0

Images :

Changes :

* Added SIP

* Pressing the "OK" Will Exit the App

* Added an Icon, hence making it 300+ kb rather than 10kb :p

* Cabbed it up

Edit : atached the fixed version, has scrollers now :)

Peace
[Windows Mobile Apps and Games] cbolumar:
Hello Ather , i tested the versión 2 and i have a problem with the sip.

The keyboard is over the last data : Enable speed, Enable Log and Lag Advance and without scroll is difficult to change the values.

I can use the program in horizontal because i have scroll automatically but , is you can, will be necessary to enable the scroll went open the keyboard.

Thank's.
[Windows Mobile Apps and Games] Mach2003:
With the UI v2, I can not change any value that is under the sip.

I select LagAdvance value, press ShowKB, (now the sip covers everything below Delta Time). Type numbers, close sip. Nothing is changed. I assume that click on "ShowKB", looses the focus window.

I can change all the values from Delta Time and up, because I can still select them with the sip open.

You may need to re-size thw window for the sip, and add a scroll bar.

Thanks for working on this...
[Windows Mobile Apps and Games] RoryB:
Only had rerouting once, and I think it might have set up a different route and not that it threw me. For some reason Bing closed and by the time I got it open and reset to give me directions, it tried to send me somewhere else than where I selected to go. So maybe earlier it was trying to send me somewhere else too. The main thing is I did not get periodic rerouting notifications like before.

I installed GPSMod and checked the drivers again:

COM1 = GPSModDriver.dll

COM4 = GPSID_HTC.dll

GPD0 = gpsdriver.dll

GPS0 = GPSID_HTC.dll

I did not see gpsapi.dll anywhere in drivers. I searched my registry for "gpsapi" and it did not find it. On way home I might try changing COM4 and GPS0 to point to gpsapi.dll instead and see what happens. UNLESS you tell me I better not. I assume I would change HKLM\Drivers\BuiltIn\GPSID, DLL from GPSID_HTC.dll to gpsapi.dll. The only other place in the registry is under HKLM\System\CurrentControlSet\GPS Intermediate Driver\Multiplexer\ActiveDevice, DLL that I assume gets set by the builtin driver and do not need to change myself.
[Windows Mobile Apps and Games] Mach2003:
gpsapi.dll is not a driver for anything, don't change your gps driver to the API.

It is the api handler for GPSGetPosition...

gpsid_HTC.dll is the HTC replacement for the M$ gpsid.dll, and is required for the GPS to work at all.
[Windows Mobile Apps and Games] RoryB:
So I am still in the same boat. I might try Bing without GPSMod again tonight and be sure it is actually giving me a course that I plan to drive. I'll let you know how that goes.
[Windows Mobile Apps and Games] Mach2003:
Sort of...

HKLM\Mach2003\CellTower gives the last update time for both cell tower position and GPS, as well as the current lat and lon. Heading and Speed are not written anywhere. You could use REG_BINARY "LastGpsUpdateTime", it is a SYSTEMTIME value, 8 bytes, to determine when the last GPS signal was recieved.

I use titanium home with Showaco's mods. On the Utility page I have a link to ModSettings. I have the 2nd line of text for that page display the current status of ModDriver.

ModDriver looks for the key: HKLM\Software\Microsoft\CHome\Utility\Page7

If the ACTIONURL string value there is "\Windows\Start Menu\Programs\GpsModSetup.lnk" then it writes status information to string value "TEXT2". Values are "GpsMod - Sleeping", "GpsMod - MsApi", "GpsMod - Com2", or "GpsMod - Delay". Anything, but sleeping indicates an active GPS connection, delay indicates GPS connection was very recently closed.

If you don't use the UTILITY page now, create the above key. Create the ACTIONURL string value, and set it to the link to ModSettings as above. Also create the TEXT2 string value, don't care what you initialize it to. As soon as you run any GPS application the TEXT2 value will stay current from then on.

If you do use the UTILITY page, make page7 point to GpsModSetup.lnk.
[Windows Mobile Apps and Games] Mach2003:
FYI: setting Bing to use COM4, in effect, should be the same as removing ModDriver, it will use original GPS data that way, without having to un-install ModDriver.
[Windows Mobile Apps and Games] pukelo:
Cant install PDA Win CE 4.2 (WM 2003)

Hi,

First of all, thanks for all yor great work. I've tried to install, but i'm not able to do it. and i'd like to ask if it could because my system, wm 2003, is in spanish. Then, i'd have to change my rom to an english wm2003 rom?

Thanks in advance. And sorry if its a stupid question.

Pukelo
[Windows Mobile Apps and Games] darthveda:
For me it didn't happen like this, the GPS was active with 8 to 9 fixed satellites for around 30 minutes and then it went. I had not switched off the phone nor did I exit my GPS application. I was tracking a route through forest when this happened. I do not know why cell coverage is required for GPS lock though.. also there were other operator's cell tower nearby guess that does not matter...
[Windows Mobile Apps and Games] Attiska:
Hi,

I have a HD2 with gps mod driver 3.20. If I stayed (my speed is 0), the navigation software (iGO, Garmin XT, GIS Russa, etc.) speed indicator is show 2 km/h. The mod driver's values are default.

A second question. I assigned the target in the Garmin XT (or Russa and Navitel), but the built in compass (Tools/Digital Compass) not showing the direction inicator green point like the Google Maps.

What is the solition these problems?