yashsingh1/xdaforums huggingface dataset:
[Captivate Android Development] Rrryan2:
MS Based.

"In MS-Based mode, the network provides the satellite information to the device, based on a rough estimate of where the device is located, and the device acquires the GPS signals from the satellites and calculates its location. After the initial fix, the device operates like an autonomous GPS receiver, until the satellite information must be refreshed, at which time the device goes back to the network to update the satellite information. MS-Based mode is appropriate for applications that require the device location to be updated rapidly, such as a navigation application."
[Captivate Android Development] bames:
the spirent server still works as settings.

i used it today and it didn't miss a turn and never showed me off the road.

the google server however showed me off the road 2 times and missed 2 of 6 turns running my about 15m past the turn before correcting itself and realizing jwhere i was. (which is an even more frequent event when use wireless network is turned on ) I also use standalone settings.
[Captivate Android Development] 1randomtask:
Just wondering what file to edit to change NTP servers to more appropriate ones for Australia?

such as;

0.au.pool.ntp.org
[Captivate Android Development] Rrryan2:
au.pool.ntp.org

Easiest way is to use the Faster Fix app from the market.
[Captivate Android Development] drancid:
First if all... i gotta say THANK YOU SOOOOO MUCH for your great work!!

Flashed the cp test fix.

It is damn impressive!!!

Faster locks, better tracking!!

Coulnd't enable the cp mode by dial #*1575# but still getting damn nice performance!!

You made my crappy GPS snappy!! Thanks again!! ;)

(May i love you?rofl!!)
[Captivate Android Development] 1randomtask:
Thanks, worked a treat.
[Captivate Android Development] iXNyNe:
is 1.0 known to still have issues with certain modems? or did that seem to clear up?
[Captivate Android Development] aalh:
Rrryan2, it never ceases to amuse me how many people think your name is PlumbBob.
[Captivate Android Development] Rrryan2:
Seems it cleared up once I ironed out a couple bugs that were getting confused with modem problems. I wasn't sure how it would work with pre-KB1 ROMs and modems since it contained the new libraries, but plenty of people ahd good results and since removing 0.8.4b from the OP there haven't been any problems reported.
[Captivate Android Development] iXNyNe:
sweet, i seem to be sitting pretty with my current modem as it is, (which fell into the range of 'recommended' when it did matter) so hopefully i wont find a reason to switch it up any time soon
[Captivate Android Development] venomio:
Yeah, agreed with all the other posts, this fix seems to be rocking hard with most of the ROMs I've tried with it too.
[Captivate Android Development] bhairya:
I agree with it being far better than stock. I tried it out yesterday in a different city on a driving trip and was pleasantly surprised. Faster locks, more accuracy in google nav and just a better experience. Not perfect but far more usable than it's ever been.
[Captivate Android Development] Thegodfather156:
PlumbBob is the best thing since sliced bread. My GPS is flawless now. Good work my friend!
[Captivate Android Development] Thegodfather156:
With flight mode on I get a lock in under 10 seconds with 8 satellites. Wooohooo.

You got a PayPal so I can donate?
[Captivate Android Development] bobapunk:
Just installed 1.0

Sitting inside, Locked in 9 seconds, accuracy <10 meters, 9 satellites.

This is the best I have seen on my phone yet!

I'll test it out driving down the road and report back.
[Captivate Android Development] Liv33viL:
To PlumBob - or - Not To PlumBob.... That Is The Question

Great thread BTW Rrryan2,

I have read the OP, OP2 and this thread many times and have been staying current with the updates to this thread.

I have a question pertaining to if it would benefit my GPS to flash the PBv1.0.

I have an AT&T Captivate KB1 Froyo 2.2 build running the cmenard's OverStock v1.0 Kernel.

I have not done anything to my GPS (as of yet) - it's bone stock OTB.

Here's just a quick review of the performance I'm receiving with my stock GPS:

GPS - Roughly 60 miles round trip - with an A-GPS data push (pre testing) also utilizing the sensor aiding option - was able to lock hard within 8 - 13 seconds with 8 satellites 90% percent of the time while the addition 10% was 7/9 - 8/9 - only pulled a 9/9 a couple of times for a few seconds them would go 7/9 then get my 8/8 lock. Satellite strength ranging from 48 peak, 36 average across the 8 locks and the lowest (briefly) to a 15 bounce low while scanning to lock to another satellite, then get a reading of strength to the 36 - 48 range again.

Accuracy was super. I was reading the street signs on the GPS as I was approaching and passing them in real time. (of course being extremely cautious while driving) Accuracy within about 8 - 16 feet - if that.

I was using GPS Test, GPS Status and Backup Pro and Maps.

GPS kept a constant lock on GPS for the duration of the test and I never lost my connection to a feed.

This is without the PB GPS v1.0 fix.

Now I have a control - something to reflect on while testing.

I'm not to certain, other than what others are reporting, if what I have now is average, above average or sub par...

My question is, does it appear that I may have some room for improvement by applying the PB v1.0?

If so, (I realize stats vary tremendously) how much headroom do you think I can gain?

If I decide to apply the fix (PB v1.0), what should I be backing up (specifically) if I find the results non effective or detrimental and I would like to revert back to what I am currently using now?

Can an isolated GPS reversion be performed without a full ROM flash?

Any specific insight would be greatly appreciated.

Keep up the great work...

Peace-

Liv33viL
[Captivate Android Development] askpcguy:
I cannot speak for Rrryan2, but generally speaking I would make a backup using Clockwork rom manager's Nandroid then flash the PlumbBob v1 USA update.

Follow the directions before doing so, and make note of your GPS performance.

If things look to be the same, there is no harm in leaving the GPS fix in place.

If things look worse, keep in mind it might be temporary and could change the next day. But you can restore the Nandroid backup and not have a worry.
[Captivate Android Development] rajendra82:
Liv33viL:

Since you are already on KB1, reverting back from the plumbbob fix will be very easy.

Use root explorer, adb, or terminal emulator to make backup copies of the following configuration files:

/system/etc/jupiter.xml

/system/etc/gps.conf

/data/gps/secgps.conf

The binary files flashed by version 1.0 of the fix already came from KB1.

When making changes to lbstestmode settings, just make a note of the original values.

In case you want to go back, and I can't imagine why you would, restore the original configuration files by deleting the new ones and replacing them with the backups, and reenter the original settings in lbstestmode, and you are on the less optimal setup again.
[Captivate Android Development] Liv33viL:
Manual File Transplant vs CWM Flash

Thanx askpcguy, I appreciate the feedback but would like to refrain from performing a full image restore. I will, however, perform a nandroid backup prior, as I always do.

I actively make nandroid backups prior to implementing a major mod, such as framework or a kernel, etc... but prefer only to preform some minor file replacements and system settings changes, as Raj posted, instead.

Raj, Question:

I poked around the PB v1.0 zip to examine the files and check out the Jupiter.xml, att_cert and all the files loaded in the fix.

By performing "only" what you have posted, will I gain the upgrade advantage by manually placing these files in their respective directories and of course manually updating the NTP and other setting through LBSMode as opposed to flashing the CWM? - or will I need to flash the CWM as well?

In other words are there any additional files, permission settings or directory mods that the CWM flash will perform above performing a manual file transplant?

Peace-
[Captivate Android Development] rajendra82:
CWM does set correct permissions and ownerships for the files put into the system folders. If you look inside the zip, there is a file called:

/META-INF/com/google/android/update-script

Look at it in a text editor, and you will see what all the script is supposed to do.
[Captivate Android Development] movielover76:
Confusing

It really confuses me how hardware can vary so much from phone to phone, I tried this fix and while locks were fast and seemed accurate,

In mytracks acurracy was way off and in Google navigator I had to worst performance ever, it never knew where I was, or popped on and off roads.

Strangely was is working for me on Cognition 4.1.1 best in navigator is the updated drivers from UCKB1 and the updated Nexus S gps daemon with the configuration files jupiter.xml and gps.conf from Adam's GPS fix, wireless location setting is turned off, like this i usually can't get a lock inside, but the GPS works fairly well when in my dash mount, which is what I care about.

I didn't want to use his entire fix because I know it uses older drivers than UCKB1 has.

The best preformance I ever got on my GPS was with cognition 3.04 and DA_G's ATT GPS fix, but the rest of the phone is so much more stable and calls are so much clearer with 4.1.1 that I live with the mildly bad gps reception indoors
[Captivate Android Development] Liv33viL:
I really like the way the permissions are set for:

/lib/libsecgps.so

and

/lib/libgps.so

"666"

Gotta luv it...

Thanx Raj

Peace-
[Captivate Android Development] Liv33viL:
Raj,

At the pace I'm asking many inquisitive questions and at the rate that you're responding in a well detailed explanation...

You just may be sitting at 100 on the Thanks Meter by this Friday - :D

Too funny...

Peace-
[Captivate Android Development] hamburgertrain:
Sorry if this is blatantly obvious but, is this fix compatible with CM7?
[Captivate Android Development] Rrryan2:
Look back a page or two within the thread for more about cm7. Im short though, I don't know if it will work or if it's even necessary with cm7.
[Captivate Android Development] hamburgertrain:
Well I was using this fix with cognition 4.1.1 and it worked perfectly, gps was as good as its ever been, and with cyanogen mod and the same modem, it is terrible without the fix, so I was hoping it could help but i dont want to break gps and have to flash again
[Captivate Android Development] Rrryan2:
Sorry - I have no idea what it might do on CM7. Presumably they're using the same Samsung drivers from Nexus S/KB1 so it might work, might do nothing at all, or might break the GPS or worse.

The handling of the processing for GPS computation on these is slightly weird, since unlike many standalone GPS chips it doesn't do the processing on board and hands it to the main CPU. This is arguably a better answer (when it's working right at least) than using a wimpy onboard processor, but it requires some minor archmagery and needs to interface with the RIL (radio interface layer) among other things. Whether the CM7 team got all of that right in the port from AOSP I don't know, and so it's unclear what effect a patch like this might have if any.
[Captivate Android Development] Overgloc:
Thanks for the fix!!
[Captivate Android Development] Liv33viL:
Improved GPS Results

I'm still looking for the log sheet which holds the bone stock GPS stats...

I previously held a consistent 8/8 lock about 90 - 93% percent of the time with the remaining 7% locking in at 7/8, 8/9, 9/9.

I got a solid lock in at 9/9 pretty consistent when in range for 9 and definitely a consistent 8/8 lock over all. - I'm hoping for 11 or 12 satellite lock on my next trek out.

My locks when from a 8 - 13 second Hot Start (Bone Stock) to a 5 - 8 second consistent Hot Start (With Rrryan2's Plumbob GPS Fix).

All tests were performed indoors, away from the windows...

Here's my GPS Test numbers after flashing the fix.

Just figured I post my stats in case someone else was looking for a comparison...

3-14-2011 GPS Test Stats

LBSTestMode

*Hot Start Tests

30/30

Average is 6981 ms (30/30)

*CNO Sensativity Tests

102 Tests

Success Rate: 10000.0%

Average CNO: 22.19608

Max CNO: 39.0

Min CNO: 15.0

*CNO Tests

Testing Time: 121

Average CNO: 21.525

Max CNO: 28.0

Min CNO: 18.0

*Antenna Tests

Testing Time:

Average CNO:

33.0(1) 33.0(2) 27.0(3) 27.0(4) 27.0(5) 22.0(6) 22.0(7) 26.0(8) 28.0(9) 25.2(10) 27.0(11) 29.0(12) 26.8(13) 20.0(14) 30.0(15) 24.0(16) 23(17) 23.0(18)

20.4(19) 28.0(20) 22.8(21) 25.8(22) 23.0(23) 26.0(24) 18.6(25) 21.8(26) 27.2(27) 20.2(28) 27.0(29) 27.0(30)24.0(31) 28.0(32) 30.0(33) 22.0(34) 23.0

(35) 30.0(36) 23.0(37) 23.0(38) 26.8(39) 27.2(40) 23.2(41) 22.0(42) 16.0(43) 28.0(44) 23.0(45) 30.0(46) 30.0(47) 26.0(48) 24.0(49) 22.0(50) 23.2(51)

24.0(52) 24.0(53) 24.0(54) 24.8(55) 26.0(56) 26.0(57) 26.0(58) 26.0(59) 24.0(60) 24.0(61) 24.0(62) 27.2(63) 27.0(64) 27.0(65) 27.0(66) 25.2(67) ...

and the list continues... my hands got tired of typing every couple of seconds for the antenna tests. So I stopped typing.

I guess I should checked to see if I could have pulled a log file... but I didn't think the test was going to last this long.
[Captivate Android Development] low99:
I'm on Cognition 4.1.1 my first flash didn't make my gps any better, so reading through this thread, I re-flashed because I thought it was a bad flash, and indeed the gps is better and could get a lock within 10 second but after a few days, I couldn't get a lock any more. Suggestions? Re-flash?

#edit: instead of waiting for a reply, I re-flashed and gps is back to normal again, thanks.
[Captivate Android Development] Sanctus Peregrinus:
Thanks Ryan! I went from stock 2.2 with o.k. gps to Cog. 4.0 which gave me bad gps to stock 2.2 + voodoo still bad gps. Thanks to you my gps is now blazing, good work.
[Captivate Android Development] Soccer_Dad:
Something you might want to try...I have had success "restoring" GPS by wiping the cache partition in recovery. The only downside I have seen is that the market loses track of the apps you have installed, and I also need to clear the market data in the manage apps settings to get it to rebuild the list and see all my apps.

It seems less intrusive than a reflash. But YMMV.
[Captivate Android Development] GRACO:
make sure to Clear GPS data cache, supl settings are correct and then reinstall the fix... that worked for me.
[Captivate Android Development] mbc663:
Serendipity 6.2 kills the gps. Was perfect on 5.12. Can't get any locks now. :: sigh::
[Captivate Android Development] Rrryan2:
Odd. I was actually getting pretty good out-of-box GPS on Serendipity 6.0 and 6.1.
[Captivate Android Development] reinbeau:
My GPS is fine on Serendipity 6.2.
[Captivate Android Development] bhairya:
I flashed serendipity 6.2 and tested gps which wasnt too bad. Not like 5.12 with the fix applied but not too bad. Then I applied the fix and tested it today and it wasnt good at all. Long time to get a lock, nav waiting on gps forever. On gps test it took a while to get locks. What gives?
[Captivate Android Development] mbc663:
ChanceM said that him and mikey changed the gps files between the versions. I dunno which files to go back to or i would. I posted the question in the serendipity thread.
[Captivate Android Development] Rrryan2:
Sorry to hear. I made a .zip that replaces the files my fix modifies with ones taken from Serendipity 6.0 (I don't have a dl of 6.2 to kang from, but from what I remember 6.1 and 6.2 were mainly bugfixes that didn't have anything to do with GPS).

I'm not sure what's causing the problem, but it seems the JS7 base ROMs may be using some new binaries that may or may not be playing well with this fix. The JS7 base ROMs are so new though that I haven't really tested and there haven't been many reports yet.

I'll try to look into what JS7 is doing in the next few days and see if I can figure out what the issue might be.
[Captivate Android Development] Liv33viL:
GPS Stats Update

Ok, so I was able to get out for a while this afternoon 1 day after applying the fix.

What I've noticed is that now I get a lock @ 6 - 10 seconds compared to 8 - 13 seconds pretty consistently - accuracy is about the same and I was able to pull 11 /11 a few times - 10/10 a few times and basically locked in at 9/9 overall - as compared to locking in at an 8/8 the other day.

SNR is basically the same as well.

I'm satisfied with the results...

Peace-
[Captivate Android Development] dalewest:
About ready to give up...

...but I haven't yet only because some people say their GPS works fine. So, I keep trying. Help me Obi Wan, you're my only hope.

I have a 1009 Cappy running Cog 4.1.1 (KB1 modem) and your PlumbBob 1.0 fix from 3/10 (followed your setup directions to a T). However, outside on a clear day and walking around my building, using Google Maps I got an initial location of 1000 meters that was kinda close (I was just inside the blue circle). Then GMaps told me my compass wasn't calibrated, so I did so, and restarted GMaps. It then plotted me across the street about 200 yards away. It wouldn't track me at all.

So I closed Google Maps and started GPS Status. I might get two birds and no fix at all. It says the AGPS data is current (0 days old).

Have you any wisdom to share? I'm all ears if you are willing.

Thanks!
[Captivate Android Development] Rrryan2:
1. Make sure GPS and use wireless networks is turned on, and you have a good data connection. If you're outside a building where you typically use wifi, you might be getting too weak wifi signal to download the AGPS data so try disabling wifi. This happens to me in my driveway from time to time.

2. Make sure all the settings in LbsTestMode are correct. Double check.

3. Delete GPS data from either LbsTestMode or GPS Status and try again.

4. The "re-aiding" time is set to 10 min in Jupiter.xml, so if it still doesn't work, wait at least 10 minutes and try again. Maybe it will manage to catch the AGPS data this time.

If the above don't help, try re-flashing this fix.

If all the above don't help and since users of Cog 4.1.1 in particular typically report great improvement, I'd suspect a bad flash of the ROM and/or modem. Re-download it and re-flash it. You might try simply re-flashing KB1 first if you don't want to wipe.

If that doesn't work, your GPS probably just hates you. Consider group therapy.
[Captivate Android Development] rajendra82:
Rrryan2:

Great suggestions. I'd like to add one more.

Download and install the app Micro Second from the market for a more perfect clock synchronization. You will need to be rooted, and will need to hold your finger in the sync area twice. No matter what it says, you do not need to disable automatic sync to use it. They can both coexist. Automatic sync on boot, and Micro Second sync on demand.
[Captivate Android Development] CuriousTech:
+1 therapy

If it's receiving a signal from 2 sats, it should be able to get a fix within a resonable amount of time. If you start up GPS Status and see signals within seconds, the data is pretty recent and that's about all any mods can do. Reception is up to the hardware. If you're seeing for example 10dbHz max (LbsTestMode), you've got an antenna problem I'd think. If higher than say 30, but still only 2 sats then probably obstruction of view. I've seen 42 max on mine which is decent really.

Mine's been doing great BTW. My main issue was inconsistant fixes and failed fixes after no use for several days. PlumbBob has kept it starting up and working always.
[Captivate Android Development] Rrryan2:
Unlikely to help in my experience. If things are working correctly, the GPS syncs using NTP and either maintains its own time internally (not sure) or else computes an offset against the system clock to use for estimating GPS time.

Specifically, you can set your system clock off by several minutes and still get effective GPS. So whatever the problem is it's probably not the system time and using Micro Second to sync the system clock with UTC probably won't help much if something else is actually broken.
[Captivate Android Development] dalewest:
Well, steps 1-4 didn't make any difference, but reflashing the fix has certainly helped... using GPS Status I got the AGPS data after about 25 seconds, and found/fixed up to 7 birds with between a 10 and 30 meter range. GMaps was better as well, and had me within a 30 meter circle of where I actually was.

More testing later as I drive home... hopefully I won't need much more therapy after all.

Thanks again... more to come.
[Captivate Android Development] dalewest:
Did more testing, and I don't know what to think. Tracking was very erratic on my 50-mile commute home. Now sitting in a wide open soccer field, I get 7-9 birds, but sometimes some drop and come back, and other times I'll lose the fix while just sitting here. Signal strength seems ok, but I don't know where to verify that. Accuracy is currently 10 meters.

*scratches head*
[Captivate Android Development] NascarFastcar:
What are you using to test the gps? Search for "Gps test" in the market and download the free one. The icon is a little radar. This makes it easier to read the SNR strength levels...
[Captivate Android Development] Liv33viL:
GPS Test Software

Also GPS Status & Toolbox from the Android Market is a well designed application for GPS testing. I use both the GPS Test Full Version and the GPS Status & Toolbox. Both offer slightly different features and give pretty accurate results IMO.

Just an FYI

Peace-
[Captivate Android Development] CuriousTech:
I just installed Cognition 4.2 and had the pleasure of seeing a messed up GPS. GPS Status downloaded AGPS and showed 1 bird at 0° N (#42) and just stayed right there on the outer ring. A 2nd one showed up barely. Installed PlumbBob and all is good again. No #42 anywhere, so whatever data it was using was corrupt or the driver was messed up. It wasn't really picking up any signal. It makes me wonder if the problem is interference from another chip in the phone. I don't know enough about that.
[Captivate Android Development] dalewest:
@NascarFastcar & @Liv33vil, I use GPS Status to 'quantify' my testing and Google Maps to visually verify my location. The only way I know of seeing signal strength in GPS Status are the little bars below the grid; see the red box in the left screenshot below:

What I notice is that sometimes I'll lose the fix, but not lose any birds... or I'll get a bunch of birds, but no fix... or a combination, like in the right screenshot. It seems that I'll get the initial fix (sometimes fairly) quickly, but then lose it. It may come back, it may not. And this is while I'm sitting still. Not sure what the deal is.