yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] Mach2003:
@RoryB,

Your log dies at the same place as before, flushing the file makes no difference.

Try creating a String value under \System\StorageManager\Profiles\moviNAND "Folder", enter a string that does not exist on your machine (like "NoFolder"). I just want to see if it crashes if the value exists.

I also assume that the install goes fine when the moviNand key is missing all together, but don't remove it just yet. You could try renaming the key to something else ("moviNand2") to be sure it works that way.
[Windows Mobile Apps and Games] Mach2003:
Never mind....

I just got the problem sorted out, who say's Mondays are bad?

When I read a string value from the registry that does not exist, I set the destination string to NULL, but I use a DWORD *NULL (4 bytes), since at the time I don't know what type of value we are trying to read.

For the folder value, I set the first word of the path to "\", and pass in the second word as destination address. This works fine when the value exists, but you can't write a DWORD to a mis-aligned memory location (all addresses must be on 4 byte boundary).
[Windows Mobile Apps and Games] Mach2003:
3.3.14 fixes reading a missing string value from th registry.
[Windows Mobile Apps and Games] RoryB:
I had to hard reset for other reasons. I had installed 320 as part of my resetting my phone for use.

Version 3.3.14 installed over 320 fine.

I think it asked me two or three times about saving my settings.

I'll test on the drive home and report either tonight or tomorrow as soon as I can.
[Windows Mobile Apps and Games] Mach2003:
Great news RoryB, glad we finally solved this one, Thank You for testing it.

The upgrade from 3.20 to 3.3.x might still have issues with when to ask for backup/restore since the whole system is changed. 3.20 used a registry key to save your settings, 3.3.x uses a file on the card. Remember that the un-install portions of an 'upgrade install' uses the original (3.20) setup.dll.

To be sure, you can un-install 3.20, and then install 3.3.14 fresh and see if backup settings prompts are logical. You could even backup from the system page in 3.3.x, and then uninstall, install 3.20, uninstall 3.20, and then re-install 3.3.14, it should allow you to restore the backup you made (way back then...).

Issues left to solve:

- Backup/restore from 3.20 to 3.3.x.

- Fresh Install may lose (fail to default) all settings.

- One device that completely locks up after short time of running ModDriver.

- I have a report of zero indicated speed while driving (in driving profile).

Anything I am missing, anyone?
[Windows Mobile Apps and Games] Nakel:
Sorry it took so long, I finally got a chance to try this. It took a while, but I found two ports. I used comm 3 for the first setting in GpsMod Settings, and Comm 6 for the second. It's working now, how well I'll let you know tomorow. BTW, Garmin Mobile XT wouldn't work at all--even before GpsMod-- on comm 4. It works on GPSID fine.

I used 3.3.14, still didn't auto assign any comm ports. It was on 0 and 1. Even the older --3.20-- versions, it won't install on the newer Artemis Roms. Is there anything I can do to help you figure this out?
[Windows Mobile Apps and Games] darthveda:
Can you implement a feature to time the time taken to get a lock?
[Windows Mobile Apps and Games] Mach2003:
You should be able to set the second port back to COM4 (factory GPS port).

Garmin has always hated internal com ports (unless QueStub was used), but since we support GPSID, then we don't need com port (or QueStub) for Garmin anymore.

You could post a copy of your GPSID registry values before you install ModDriver, but now that would require a hard reset, unless you saved them.

("System\\CurrentControlSet\\GPS Intermediate Driver")
[Windows Mobile Apps and Games] RoryB:
Did this and it installed fine. I did notice it had my internal GPS port as COM0 both times I did the 3.3.14 install. I'll change it to COM4 tomorrow unless you ask me to try something different.
[Windows Mobile Apps and Games] Nakel:
I can hard reset, get the info, and then restore with SPB Backup to get back to where I am now. Do you want just the values, or would a copy of the registry be better?

BTW, on older Roms, Garmin worked on com4... I couldn't see signal strength, but it worked. With the newer Artemis roms, Garmin can't even find the Gps on com4. I don't know if that helps or not...
[Windows Mobile Apps and Games] Mach2003:
Go ahead and change it back to COM4, I must have a bug there too.
[Windows Mobile Apps and Games] Nakel:
Here it is prior to GpsMod install after a fresh hard reset:

System\\CurrentControlSet\\GPS Intermediate Driver

isenabled=1

\Drivers

Current Driver=GpsOneDevice

\Drivers\GpsOneDevice

CommPort=GPS0:

DriverName=GPS Device Driver

\Drivers\GpsOnePort

CommPort=GPD10:

Interface Type=Comm

GPSID\Multiplexer

Driver Interface=Com4:

\Multiplexer\Active Device

DLL=GPSID_HTC.dll

Flags=2

Index=4

Keep=1

Prefix=com

I incleded everything that seemed relevant? I also have the registry backed up, let me know if you need it.

Report on 3.3.14:

It didn't work so well, Maybe something to do with tthe com port settins??? Perhaps what I'm doing is not right? One of the best things about GpsMod in the past has been that it locks on so well. With this install, lock ons on the ground are taking roughly twice as long as stock. Past installs took half the time as stock. Airborne I can't get a lock at all; I waited 25 minutes several times. Stock took from 3 to 10 minutes under these conditions to lock on. (Same flight.) GpsMod used to take from 2 to 5 minutes airborne to get a lock. (Which is absolutely excellent BTW.)

Thanks!
[Windows Mobile Apps and Games] AgenteAlves:
This is work on Topaz??
[Windows Mobile Apps and Games] dingolino:
I owe you the log file for that one. Now I installed 3.3.14

Best regards

dingolino
[Windows Mobile Apps and Games] RoryB:
I am not positive, but I think there is something with port scan going on. I normally leave it as never scan since I only have the internal GPS. I set MsAPI set to order 1 and COM4 to order 2. After a day of not using I started GPSMod. It took a l-o-n-g time to not find sats. We're talking a few minutes. I then went in and changed to scan on battery too and within about a minute sats were found. After that I could wait hours and get sats in 30 seconds or less. If I turned off scan again and waited a while I get the same.

I think this is what has happened. I am not sure because I go back and try again I do not know if that has made the difference. I need to wait a long time with the scan on battery too set and then try again to confirm.
[Windows Mobile Apps and Games] djorke:
yeah

Of course, it works well. Just try it
[Windows Mobile Apps and Games] Nakel:
OK, It was me. I didn't change ModSettings "Internal GPS Device" back to Com4 like you said to. I thought that as long as it was set to an open port--Com 6-- it would be OK. After the Hard reset I set it back to Com 4 and Voila! Lock on back to GpsMod perfection.

One more glitch to report though. At an actual speed of about 340mph, reported speed had intermittant flashes from 2000 mph to almost 4000 mph! The map was zoomed WAY out, so I'm not sure how much if any position movement went along with those readings. I didn't see any, but it was zoomed out so I could see several thousand miles of map. I shut off the GPS so the readings would be easy to find near the end of the logs. (Attached below.)
[Windows Mobile Apps and Games] RoryB:
Update

Last night I ran it on way home with GPSMod having previously set to Never Scan for port:

after 1.5 minutes plus it still had NoFix on 0 of 6 sats

set to Scan on battery too and stopped program

waiting long enough to get to new cell tower, etc.

started program

took 45 seconds to get 3d fix

did again later and still got fix

This morning:

Got 3d fix very fast, but

fix was 3d fix on 10 of 3 sats

it went back and forth from no sats to several to many

always seemed to be more sats of sats as above (10 of 3)

Here is the Mach2003 folder
[Windows Mobile Apps and Games] Mach2003:
You lost GPS reception for a couple of seconds:

200111 081841.337 Failed to Read MSApi data
200111 081841.337 Clear Input Structure
200111 081841.337 Read MSApi data 1200

200111 081841.341 WWIB: DopS:11.0, Speed: 537.8, Dms: 1000, Lagms: 1199
200111 081841.341 Projecting Position, Speed: 542.1, Distance: 180.6, Course, 299.1

200111 081841.806 MsApi Data Return: 376 (319) [$GPRMC,,V,,,,,,,,,,N*53
$GPVTG,,,,,,,,,N*30
$GPGGA,,,,,,0,,,,,,,,*66
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$PGRMT,Mod Msapi,0,0*50
$GPGSV,3,1,10,15,51,292,34,21,29,303,29,05,54,099,28,26,56,018,28*7D
$GPGSV,3,2,10,08,17,039,24,27,53,199,23,18,04,305,22,28,15,074,21*7D
$GPGSV,3,3,10,29,01,244,21,09,29,205,19,,,,,,,,*7E
]

Then when the GPS came back online, you had moved far enough to report a large speed in error. I corectly projected your speed/position during the loss of fix, when the GPS signal came back I used it to calculate your speed.

To avoid this, use the default driving profile setting of PreferGPS for speed and course (and use driving profile) at these speeds.
[Windows Mobile Apps and Games] Nakel:
Thanks!

Just checked it, "Prefer GPS" is checked for both speed and course already? Maybe I was accidentally in "Walking" mode at the time? I thought I was in driving, but I was checking settings, so it's possible I was in "Walking" mode... I'll check again tonight.
[Windows Mobile Apps and Games] matimont:
Does this work with Samsung I617? is not touchscreen, I'm using WM6.1

Does the QuickGPs Lite also works with Samnsung I617?

Thanks,
[Windows Mobile Apps and Games] Mach2003:
I don't know anything about QuickGPs lite.

This driver might work fine on your smartphone, I don't know of anyone who has tried it though, and I never build a smartphone version specifically. One thing for sure, you will not be able to see the sats in view screen, since a screen tap is required to change the view. I also install a copy of GPSApi.dll that is the version widely circulated with WinMo (not smartphone). There is a possibility that there may be some difference in the two operating systems' version of this dll. I am also not sure the menu system works correctly with smartphone.

If you are brave enough to try it, be sure to let us know if it works for you, or if there are issues that can be solved.
[Windows Mobile Apps and Games] matimont:
Thanks,

Actually I tried it and doesn't work lol. It gives me a Visual Basic error.

It would be great if there could be a smartphone (non touch) version..

what can be used instead of QuickGPS Lite for non touch phones such as the I617?

thanks,
[Windows Mobile Apps and Games] Mach2003:
Do you have a copy of the system file GPSAPI.DLL that might be in your windows folder? You might not be able to copy it out, even if it is there, but if you can, post it here.

There is no Visual Basic in my code, it is written entirely in native C. You may be seeing an error message from COMCTRL or CORE though. Some time soon I might try to compile against a smartphone SDK to see what happens. I'll post here if I get a working emulator copy (I don't have a device to test with).
[Windows Mobile Apps and Games] Thunichgud:
Moin,

when will come the next official release ? I'm waiting for it for my first installation and test.

- Thunichgud -
[Windows Mobile Apps and Games] Larry Brent:
You can test the latest beta version, works pretty good.

Larry
[Windows Mobile Apps and Games] holmanm:
@Mach2003

Would it be possible to have an option to run a user selected program when the cell tower changes?

I use my own Mortscript code to download weather and show location on my Homescreen ++ screen and it updates every hour but I would like it to update automatically as I am driving.

Thanks, awesome program.
[Windows Mobile Apps and Games] RoryB:
You could modify your script to look at the my location reg value and compare it to a previous reading saved somewhere (registry or ini file) and if the value changed, update your weather. You would have it cycle more often to catch a location change sooner than the hour cycle you currently check weather. You could also track the last time you updated weather with another registry value or another line in an ini file to not update the weather if you are in the same place and the last weather update was less than an hour ago. I do not use the my location registry value so that is my best guess what you can do.
[Windows Mobile Apps and Games] Mach2003:
Use your mortscript to watch for HKLM\Software\Mach2003\CellTower

CurMcc, LastLac, LastMnc, and most importantly LastCell. Then you can read LastTowerUpdateTime and Latitude and Longitude when it (or any of them) changes. Only LastCell is avaialable in 3.20 and earlier, the latest beta has all four values.

As a caution, Accu Weather closes API's when they feel that too many requests are being done from un-authorized users, so polling them too often may get that server disabled for everyone who uses it.

edit to add

MachCell is a serivice, ModDriver is a device, both know when the cell tower changes, but neither are a good candidate to start a user mode application.
[Windows Mobile Apps and Games] holmanm:
OK, thanks both of you. LastCell will work fine. I may have misled you with my post. I only plan on updating my location, using Google, when the cell tower changes. I will still only update the weather once an hour since the forecast won't change that much over ~60 miles.

I am using yahoo widget to update the weather, which I understand is free and available for anybody.

So I will modify my script to check LastCell every 5 minutes and if it's changed update the location. So if I understand correctly, since LastCell here at home shows 21153, if I leave town and the come back LastCell will be 21153 again when I get home (only one tower here, small town), I can write code to show my home town when ever LastCell = 21153 and not have to use google.

This is great.
[Windows Mobile Apps and Games] Nakel:
I've been running the latest version for a week and a half or so, and it's the best ever! For the most part absolutely great! Thanks so much for all of your work!

There are two problems, but they might be just one problem:

1: On installation, it won't auto assign com ports still. I set "GpsModDriver" to com 3 and "Internal Gps Device" to com 4. This works mostly. I ended up changing "GpsModDriver" to com 6. See the next problem.

2. Every now and then, accessing the GPS results in a un-commanded soft reset. I assumed maybe I missed something and com 3 was causing a conflict, so I changed "GpsModDriver" to com 6. I still get the occasional soft reset when accessing the GPS. Roughly every day or two.

I have log files enabled, I could send you those. Maybe that's a lot of data to look through? I could save the files after the next time it happens if that would help.

Thanks!
[Windows Mobile Apps and Games] Mach2003:
You might be better off using latitude nad longitude, since it will always be the most recent position (using GPS or Cell tower).

Log files probably won't help here, since the S/R will happen before the log files get flushed to disk, and there is no actual soft reset code in my driver, so another "application" is responsible for the actual S/R. Not saying that ModDriver is not causing the reset, just that it is not doing the reset.

Try editing the registry: HKLM\Drivers\BuiltIn\ModDriver, remove the value "Index", and then soft reset. This will allow windows to assign the first free port to ModDriver (probably COM1). See if your SR problems go away.

Remember that if/when you backup your settings, ports are also backed up and restored.
[Windows Mobile Apps and Games] Mach2003:
Build 3.3.15

- Reading Msapi once to toss away any residul garbage in there (RoryB)

- Tossing away first valid reading from any port

- Try fixing default original port

- Allow empty MyPort (use windows default)
[Windows Mobile Apps and Games] RoryB:
No problems installing over previous version

Still notice 2d fix on 1 of 1 that changes to no fix on 0 of 0 or was it 1

Then it stays no fix on 0 of several. Sometimes up to 6 before the 3d fix shows.

Got a fix in less than 45 seconds

Did notice sometimes states 3d fix on 7 of 6 satellites or similar

Is there a way to stay fixed on cell until the 3d fix is made?

Is it able to get position from triangulation on cell towers?

I am beginning to think some of the position flicker comes from when a satellite fix is lost the triangulation change is caused by the rework of the math that causes a sudden change in position being registered.
[Windows Mobile Apps and Games] Larry Brent:
Big problem with the version 3.3.15.

After installation have no more sats in view. Nothing was changed in ports, system and so on but nor more sat fix. Going back to version 3.3.14 but even with this version all is dead now, no sats.

Larry

Edit:

I did a complete reinstall of the driver.

Uninstall GPSModDriver - delete all reg values manually - delete all folders - soft reset.

Then a new installation of 3.3.15 and it works now.
[Windows Mobile Apps and Games] Nakel:
I'll give that a go... Should I try the new version, or make this change with the last one? Also, I never save the settings, I install GpsMod on a hard reset restored to a point before I installed GpsMod. That way, it's a fresh install each time.
[Windows Mobile Apps and Games] Mach2003:
The soft reset alone may have solved the issue. I have seen this happen on the Omnia at randon times (not just after an install). I have traced it through logging, and the GPS itself is sending the blank messages, MoDriver is just reporting them.

Either way, either build.
[Windows Mobile Apps and Games] Mach2003:
Cell tower position is based on a single tower, no triangulation. It is either the internet location saved for that cell, or the last GPS position when you saw that cell.

Menu, System: Keep Fix (Milliseconds), and enable, is used to determine the length of time to show cell position while waiting for first fix, and also used to hold fix, when it is actually lost (after this time cell tower location will be used again).

A loss of fix less than a couple of seconds, is basically ignored. A loss of fix less that "keep fix", will use projection for your position (always wrong, but closer that nothing). The next real fix, is used without regard for the previous projected position.

xx fix on y of z:

When using cell tower or last known, 2D fix on 1 of (Actual sats in view from GPS+1).

When un-fixed, No fix on 0 of (actual sats in view from GPS).

When fixed. 2/3D fix, Actual Stats used in solution, actual sats in view.

In older versions, I overwrote the 'Sats used for solution', when it was larger than the 'sats in view' number. This looked better... On the latest beta's I omitted this change. It does look funny, but the data is coming that way from the GPS. I assume it is because the solution count and view count are calculated at slightly different times (during the 1 second pass). On COM input the three Values (sats used count, list of sats used, sats in view) are all contained in different NMEA strings. On MSAPI input they are all in the same data set. If anyone (or any application) looked at my older data the sats used count did not match the list of sats used (when I overwrote the count).

There is also the possibility that the GPS is using WAAS (DGPS), and has one more sat in the solution than is shown in the "view" list and count.

I'm open to sugestions: Should I change the numbers to make it look better, or keep them as they are from the raw GPS data.
[Windows Mobile Apps and Games] RoryB:
So if I understand correctly this means it is telling my system I am standing at the cell tower unless it had a fix for me somewhere else the last time it saw this cell tower.

So if I set this to 45000 (45 seconds) I will most of the time go straight to 3d fix from cell tower fix since I usually get a fix in around 30 seconds or less.

So the longer wait could cause me to be thrown out further, but only if I actually lose GPS signal for more than 45 seconds. Otherwise it will use the next real fix as compared to the previous real fix to get direction and speed.

I understand.

Now that you explained it, I understand, but someone else new to the program might ask the same question again.

I'll try the 45 seconds on the way home and give feedback tonight or in the morning.
[Windows Mobile Apps and Games] belrei:
internal gps w/o gsm network connection

Hi,

On my new device (Omnia GT-B7350) the internal gps is unusable without a gsm network connection, which is annoying. Can GPS Mod Driver help to solve this issue?
[Windows Mobile Apps and Games] Larry Brent:
I would say no but let's wait for mach2003.

Maybe helps an update to a newer Rom?

Larry
[Windows Mobile Apps and Games] darthveda:
it's the same on omnia pro b7610 or his omnia i8000. Without cell coverage the internal GPS doesn't work, if you have GPS working and you enter non cell phone coverage area then after sometime the GPS stops working. GPSMOD can do nothing if the hardware itself stops working!
[Windows Mobile Apps and Games] Larry Brent:
Oh didn't realize this with my O2. Always thought, this is only a problem while switching off the phone.

Larry
[Windows Mobile Apps and Games] belrei:
So you think this strange behavior is hard wired on all Samsung phones, no way to correct this via the registry :(
[Windows Mobile Apps and Games] Mach2003:
All Samsung phones seem to have the issue. The problem is in the radio layer itself (as far as I can see). It seems Samsung firmware checks the radio for agps, and when the radio has no cell tower it hangs forever. I don't know if this is intentional of their part, or a bug, but as it is, I know of no workaround.

I've travelled for great distances without cell coverage from time to time, and if I had GPS fixed at the moment I left cell coverage, GPS kept working forever... But if I don't have GPS running, I can not use internal GPS until I return to cell covered area. Good thing I have bluetooth GPS so I can activate it when I need to use GPS out of cell covered area.

Since we don't have a way to decompile the radio rom, there is not much chance that the code can be patched, however someone might be able to patch gpsidril.dll to bypass the radio when there is no cell coverage (I've never tried to decompile this one).
[Windows Mobile Apps and Games] belrei:
Hi,

Thanks for this very detailed explanation. Normally when hiking in remote areas saving battery power is an issue. So in this case there is no use in keeping the GPS running all the time.... I'd hoped to spare carrying a bluetooth device when I just want to check position a couple of times a day :(

I had guessed part of the problem was that the device wants to use a-gps. But turning this off makes no difference. Unfortunately my computer skill are not sufficient to dig into dll decompliation :o

Regards
[Windows Mobile Apps and Games] RoryB:
Test with 45 second wait

a) first test had some 3d fix 8 to 10 of 1 or 2

b) was a little later and better
[Windows Mobile Apps and Games] Mach2003:
I have your logs, Roryb, you can remove them now, if you like.

Reminder that posting ModDriver logs here allows anyone in the world to know your exact GPS position.
[Windows Mobile Apps and Games] peacock93:
Keep losing fix.

Hi Mach,

It's been a long time since I've posted. I've been using 3.20 without any problems since you put it out. I was updating to the latest EnergyROM so I thought since I was doing a hard reset I would give the latest beta a shot. It installed fine and set Com 3 during the install. When I open GPSModSetup within a couple of seconds data starts showing up. This only last for a few seconds and then everything goes to 0. A few seconds later everything shows up again and then quickly back to 0. The cycle will just continue from there. I turned logs on but haven't found where it was saved to yet. Is it a .log file or .txt file?

peacock93
[Windows Mobile Apps and Games] Mach2003:
Logs are written to the device \Mach2003 folder.