yashsingh1/xdaforums huggingface dataset:
[Captivate Android Development] max_82:
Hi Liv33viL,

Thank you for your response. When I'm using v0.8.4b my gps lock time is less than 10 seconds but when I upgrade to v1.0 my gps lock is more than 10 seconds sometimes more than 1 minutes. It was never happen with v0.8.4b. About the accuracy, I think v1.0 worse than v.0.8.4b. When I'm using v0.84b my gps accuracy is less than 10 m and now after I flashed v1.0 the accuracy is more than 10 m. I already follow the instruction on page 1.
[Captivate Android Development] CuriousTech:
Bob's doing good on b10. I'm having more trouble getting a fix at the moment being indoors, so signals are low but less jumpy than usual.
[Captivate Android Development] kevria:
I just installed B10 from 1.0 on my captivate so all of the LBS settings are still for the 1.0 (not sure if I need to change them). I now cannot get a lock even with showing 6 satellites. I have wiped the Dalvik Cache, cleared GPS data. Neither of the lto files are showing up in /data/gps.

What else can I try?

Edit: Dropping back to 1.0 gave me a fix in 22 seconds.
[Captivate Android Development] dalewest:
Serendipity 6.3, JQ1 modem, and PlumbBob?

In the OP, Rryan states that Serendipity 6 doesn't like PlumbBob... but based on other's statements in other threads about the JQ1 modem's voice quality, I'm trying that modem. However, the GPS (with MikeyMike's settings) doesn't want to lock even with >3 birds.

Given this, what might I expect to happen if I tried either the 'gold' or the beta PlumbBob versions? Nothing? Solid GPS performance? The end of the universe as we know it?
[Captivate Android Development] kevria:
The OP was about PlumbBob 1.0 unless im mistaken and only applied to some Captivates. It is pretty much a crapshoot as to how it will work with your particular phone. I have Serendipity and 1.0 on my phone right now and I definitely do NOT have solid GPS performance.
[Captivate Android Development] movrshakr:
I am just not all that good with this stuff (comfortable with flash, flash, flash). It seems like you have to try 6 different modems, each with several versions of plumbBob.

I just wish there was a combination that was "good" 99% of time, but maybe not the best one could get with flashing this that and the other. Is there?
[Captivate Android Development] Enableee:
I tried install this fix and it didn't work. It even not finndig one satellite.

My GPS never worked and I really don't know what to do cuz I tried so many fixes.

Btw even after reboot I don't have any GPS folder in data folder, I tried flashing 3 times but still there is noting in data folder.
[Captivate Android Development] littlewierdo:
Well, this is just my guess based on what I have read and seen with my own personal Captivates.

Each Captivate is slightly different (possibly even down to microscopically). In addition to this, there have been different revisions of the captivate (pulling the battery and looking under the battery storage will tell you your build number) making things even more complicated. And Samsung refuses to release any of the driver source codes to allow developers to improve on the drivers. And lastly, it seems the gps chip itself possibly has power starvation issues compounded with an antenna that is not attenuated very well for the frequency the gps operates on. Oh, and I did forget ATT refusing to release updates because they are scummy like that (see the first update to Eclair which the US was the last to see by over 2 months).

When you add all these up together, you get wonky, random, and even differing results from one phone to another.

The fact is, Samsung released a great piece of hardware but doesnt make very good use of the sound chip (which is currently the best sound chip you can find in phones) - see Voodoo sound...and the gps is wonky.

We were the beta testers for the Galaxy 2 that either just came out or will be out shortly. Congrats to us...
[Captivate Android Development] kevria:
make sure you are looking in the data folder that is off the root. You might need to use Super Manager to look in there since Astro doesnt seem to go that deep.
[Captivate Android Development] D12AKO:
I'm extremely happy with my setup... Check Sig below

I started with a fresh install of Cognition 4.3... this is how I do my installs: (I always start with 100% Charge)

01. Download all the files you plan to install through CWM and make sure they are on your root directory.

02. Boot into Recovery Mode aka CWM.

03. Under "Advance"... I run -Wipe Delvik Cache

04. On Main Menu for CWM I then run -wipe cache partition followed by -wipe data/factory reset.

05. Then I go ahead and install Cognition 4.3

06. After install is done I allow the phone to boot normally. Once the phone has booted I once again go back into Recovery Mode and repeat steps 2, 3 and 4.

07. I then Install the Kernel and let the phone boot normally.

08. Now I go ahead and setup the GPS Settings using SGS Tools as instructed by Rrrayn2. I follow this with wiping the GPS Data... Just in-case any other process before preloaded any files.

09. Once again I restart the phone in Recovery Mode and repeat steps 2,3 and 4.

10. I then install the GPS fix and let the phone boot normally.

11. Once in the phone I check to make sure the GPS Settings are still as they are suppose to be.

12. I then Launch Google Maps with Wifi and GPS enabled and let it lock on the birds. For me this took around 10sec from a cold start.

13. After Google maps has been on for a bit I exit it and launch GPS Status which locks on the birds in 5sec.

So far, my GPS has been pretty rock solid with both v1.0 and now v2.0 Beta#10. Still have to give it a few more drives but it looks like v2.0 Beta#10 might actually be even better than v1.0.

Now I'm sure that the steps I take to install stuff may be a bit too much redundancy but this always seems to work for me really well and it's still better than having to start with Eclair.
[Captivate Android Development] D12AKO:
If you're looking for help you need to be a bit more specific...

Info Needed:

What ROM are you using?

Kernel?

Modem?

And All MODs Currently Installed.
[Captivate Android Development] Rrryan2:
That's about what I've seen. The # of birds tracked is sometimes a little lower, but it's mostly immaterial since you really only need 4. The ones that are tracked have better SNR though, and mobile tracking is overall improved.

I haven't revisited the Serendipity issue lately, but yes it's more or less a crapshoot. For some users it's a great improvement, for some it completely trashes GPS. Once I manage to get 2.0 stable I'll look into it again if the issue persists.

Since I really just started this project basically to fix my own gps, it just makes me smile to hear that someone clear over in Oz is getting good results from it.

If you haven't done so already, use Faster Fix to customize the NTP server to au.pool.ntp.org and it should help improve lock times.

More than likely: a plague of frogs. As I wrote above since the problem reports from Serendipity users are inconsistent I haven't looked at developing for Serendipity specifically yet. And like I said in the OP, I was actually getting very decent GPS on Serendipity stock.

What's the 'gold' version?

It's part and parcel of being on the bleeding edge. For some it's part of thrill and the enjoyment, for others it's just tedious. And there are really only 2 versions of plumbBob, 1.0 (stable) and 2.0 (beta).

If you really just want the GPS problem to go away effortlessly and permanently, get a bluetooth GPS dongle. It's going to do more for your gps than this fix or anything else here on XDA.

Yes, that's actually a very concise summary of the problem. We're trying to improve an under-engineered system with closed source drivers. Consistent results are only a dream.

Yes. I like Root Explorer myself, but there are plenty. Remember you're looking for /data/gps/, not /sdcard/data/gps/.
[Captivate Android Development] CuriousTech:
Much improvement tonight. 9 in use, saw 10 for sec. The DOPs are getting low. 5m accuracy, and sometimes jumps up but I used to see 10 minimum because it was so busy jumping around, so that's a sign of a real change.

This morning it was 8 with no fix though for 10 minutes. I blame the new moon. :)
[Captivate Android Development] rlorange:
Why is this working PERFECTLY on my ft i9000 when its not supposed to lol! Couldn't resist trying. Getting 5m on beta 10... never got that accuracy before thank you

Stock XXJVK, Voodoo GB hack Kernel, JQ1 modem
[Captivate Android Development] Rrryan2:
Pretty much what I'm seeing too. When 2.0 is working, it works *great.*

Ah, damn. :/ That might be an indication that 2.0 isn't working quite right then, as it sounds suspiciously like lto.dat isn't refreshing properly and in that 10-minute space you're simply managing to accumulate enough ephemerides over the satellite signal to give reliable standalone operation. TTFF on 2.0 on a successful first install are usually <30s and often ~10s.

Is /data/gps/lto.dat present and up to date?

Lol. I have no good excuse for why it's working so well then, as I don't have even have an I9000 to test on. Guess we got lucky that there was enough commonality to allow it to work. And if you're using XXJVK and assuming that you flashed 2.0b10 it's especially heartening to hear. Since pB2.0 was ported from JV1/JVK it means that I'm *still* beating Samsung's in-house stock gps devs.

Watch for my resume in your inbox, Samsung. :)

EDIT: And actually, since the fix was ported from I9000 it's not surprising that it works. There are some add'l files in the fix meant for Captivate compatibility and backward compatibility to Froyo, but I expect on an I9000 Gingerbread implementation they're mostly unneeded ballast with a small (600k) footprint.
[Captivate Android Development] askpcguy:
Quick Rrryan, get going with the twitter account so you can keep track of these results. :)
[Captivate Android Development] rlorange:
Well I am your guinnea pig! Actually I lost my gps completely after some reckless root explorer file editing and before the pain of a complete reflash I thought id try your fix.

I too noticed an improvement from beta 6 to 10.

Hey this might be a lot to ask but would it be too much trouble to cook up a zip that will revert my system files back to stock jvk? Im curious to compare with your fix... happy to report my observations.

:)

Stock XXJVK, Voodoo GB hack Kernel, JQ1 modem
[Captivate Android Development] CuriousTech:
Pretty much. The datestamp is 4/5 3:17 which is when I installed it. Every time it installs it updates, but hasn't had enough time to update afterwards. Also since system time synchronizes after the system boots, I have doubts about the accuracy of file times when changed before that. Made a copy just to check that theory so I can binary diff it later. I haven't seen the time change after reboots.

This is going from plumbob to sextant accuracy. lol Earlier I got a 6 second fix doing 150 and stayed solid. Oops, thought I changed that from metric.

So is LTO being used instead of AGPS or with? Like is there anything replaced or just added?
[Captivate Android Development] CuriousTech:
You can make a CWM revert zip from just about any mod easily, but you need the files from you own ROM to do it correctly.

First make a copy of the zip, and name it something like PlumbBobRevert.zip

Second open the zip, open the ROM zip and look through them side by side.

META-INF holds the install-script which shows where files are copied to the phone and other shell commands. Good installs have the same directory structure as your phone like this one does, but look it over just to be sure.

Next copy the original files over the files in the revert zip. You can't drag files from one zip to another, so drag them to the desktop or temp folder then to the revert zip. Or unzip the revert.zip, drag files to it, and zip it back up. Make sure you don't make it 1 level deeper (revert folder at root of revert.zip).

Any files that don't exist in the ROM should be deleted from the zip plus deleted on the phone, either manually with Root Explorer or by adding delete commands to the install-script file.

Once you're done, flash it.
[Captivate Android Development] akuru:
I have installed the v2.0b10 yesterday, but can't find the lto.dat and ltostatus.txt under /data/gps/ after several reboots. And, I think that's because it takes 30 to 60 seconds to get a fix for me.

Any ideas what might be causing this problem?

Kernel: Speedmod K13D 500 Hz

Modem: JVK

ROM: Darky's v9.5
[Captivate Android Development] Enableee:
rom: Serendipity 6.3

Kernel:speedmode-i897-k13c-500hz

modem:jk4
[Captivate Android Development] Liv33viL:
Files Missing...or Invisible?

Just a few thoughts on why your device is experiencing this issue. There could be a few variables, additionally, to take into account.

1) You need to perform an assisted GPS data push after performing a GPS data wipe and pre GPS testing. A-GPS will prime the GPS to begin reading data and also will create the lto.dat which in turn will create the ltostatus.txt file.

2) If one or both of these files exist, but are not accepting any fresh data, then mount the directory, delete the both files via a file browser - adb - or whatever your preference - reboot into recovery, wipe the dalvik cache, reboot system, then perform an A-GPS data push and your issue should resolve.

If not, you may have some other issues going on under the hood complicating matters. Such as, if the ROM you're using has a modified structure of GPS or network modules, specific modem conflict with something it doesn't like in the way the structure is presented or the way a block of code was presented... etc.

Try my suggestion in number 1) first to see if the issue resolves.

HtH

Peace-
[Captivate Android Development] CuriousTech:
I had one other thought. When I tried the first time and it didn't work, there were fewer singals and those signals were weak like antenna gain was at half. That's most likely why it couldn't get a fix and doesn't mean that assistance wasn't working. It could be that it initialized/powered up wrong. Yes, I am undervolted throwing more possibilties into the mix.

Anyway if it's not working at all for anyone, wait a few hours and try again before giving up.
[Captivate Android Development] surfed.tk:
Any GPS app from google maps to TeleNav to Google navigation is spot on with external GPS receiver. Tracking is amazing, how i said best i have seen was 1.1m acc and in the rain under cloudy conditions i get 5m.
[Captivate Android Development] wgarrido:
I use My Tracks, so I can start recording and then leave it alone while I drive. You get a good idea of how well it tracked without having to check it while driving and missing when its off.
[Captivate Android Development] akuru:
Thanks for your help, really appreciated.

Please forgive my ignorance, how can I perform an assisted GPS data push?
[Captivate Android Development] littlewierdo:
Im just curious here, what is the difference between letting the phone manually grab the gps data (ito.dat and Itostatus.txt) files and using GPS Status to pull the data?
[Captivate Android Development] movrshakr:
I think I want to try 2.0b10--have 1.0 now, and it is OK but only minorly better than pure Cog 4.3 was. Are steps posted somewhere for this transition?

Or do you just treat it like a first time install?
[Captivate Android Development] wgarrido:
I use GPS Status from the market. When you launch it, it will pull AGPA data or you can go into Tools.

I think GPS Aids can do it too.
[Captivate Android Development] wgarrido:
Just do it the same. I just delete data and flash 2.0 since you should have the settings set already.
[Captivate Android Development] movrshakr:
I get pretty quick to satellites in view and fix on 6+ only shortly after that--then it bounces constantly down to 4 and up to 8 fix, changing numbers less than a second, hardly ever holding on a number of fix for the most 3-4 seconds. But my error very seldom goes below 32 ft (right now showing 98 after being on 32 for 5 min), and if it does get better, it is only for a few seconds. Have never seen anything below 16 ft.

Also, in GPS Status, the satellite view circle is constantly rotating back and forth a bit, N is 99% of time a bit west of real north, and often it clicks in a bit of speed when sitting on a table or chair arm.

Cog 4.3 + plumbBob 1.0.
[Captivate Android Development] kevria:
With the phone in my sig I have tried rebooting multiple times, downloaded AGPS data multiple times yet neither of those files is ever created in /data/gps under beta 10. I am using Super Manager to look in the room of my filesystem.

I have gotten locks but with 400 meter accuracy.

Edit: I also tried wiping GPS Data, then wiping the Dalvik Cache, then redownloading AGPS data but that didnt help either.
[Captivate Android Development] akuru:
Thanks for the advice.

Installed both of the apps, and let them download the lto.dat file. They both told me that they were able to download the latest lto.dat successfully. However, I can't seem to find them under the /data/gps. Both lto.dat and ltostatus.txt are still missing (I'm using "ls -a -l", after "su", on terminal emulator to list the contents of the /data/gps).

Something weird is going on here :) Any ideas?
[Captivate Android Development] surfed.tk:
Same for me, app keeps on saying download successful but nothing gets written to /data/gps
[Captivate Android Development] tpadela:
to install the fix, do i have to select wipe data in cwm?
[Captivate Android Development] Rrryan2:
If lto.dat is downloading properly but it takes that long to get a fix... just weird. I dunno. At least it's working now.

For our purposes, LTO + SUPL = AGPS. Remember that 'AGPS' is a loose term that describes proprietary, unsupported addons to the DoD-managed GPS and each vendor has their own definition. It's not like AGPS is an ISO standard or such.

I've had more success with GPS Aids than GPS Status for forcing LTO download. It seemed like it worked better under 1.0, but under 2.0 GPS Status never seems to download the LTO even though it says it is. Android fragmentation perhaps.

You're never going to see anything under 16 ft. 16 ft is roughly 5m, which is all the accuracy these devices are capable of. Blame Samsung, as the chip itself is capable of better. And 32ft (10m) is usually sufficient for navigation, and 10m is really still quite respectable for indoor.

The rotation has nothing to do with GPS but is caused by the flaky compass in the Galaxy S. Blame here lies with both Samsung and Yamaha.

Some amount of occasional 'ghost drift' is normal. It simply means that the calculated position momentarily shifted for whatever reason and the perceived change in position was interpreted as velocity. As long as it's not real bad it's not much of a problem for real-world use in navigation, and the tweaks in plumbBob are meant to minimize it as much as possible.
[Captivate Android Development] Rrryan2:
Good Lord, no. There's lots of stuff in /data/ that you need.

Use LbsTestMode and choose 'Delete GPS Data.'
[Captivate Android Development] movrshakr:
I flashed 2.0b10 and then Use LbsTestMode and choose 'Delete GPS Data.

Opened GPS Status, looked in /data/gps. There is no lto.dat there.

Oops. did I erase it with the 'Delete GPS Data.'? What should I do?

LATER: OK, I got it using GPS Aids.

Also, where is the compass calibration I think I remember waving it in a figure 8 to do that??? Or was it rotate around all 3 axes? I remember THAT one was impossible, because you were supposed to do it, then press OK. But when flipping it vertical, the orientation would change, erasing the OK button dialog!
[Captivate Android Development] 1randomtask:
Is the Control Plane method still applicable to Beta10? (or any of the 2.0 beta's?)
[Captivate Android Development] Rrryan2:
If you reboot it should probably catch. And follow the directions next time. :)

Edit: The 'Figure 8' method is in Google Maps. The '3 axes' method is in GPS Status. But neither is going to be very helpful I'm afraid. The compass problems are beyond calibration.

It's allowed in the config files, but would need to be enabled it in LbsTestMode and in Service Mode (dial *#1575#). It's also still not consistently helpful in my experience, but maybe things are better in Oz.
[Captivate Android Development] kevria:
Gps aids was able to download the files for me.
[Captivate Android Development] Liv33viL:
Invisible Data...

Hey guys, data is processed and stored in memory and a few files between when you can actually see it.

After the data is pushed, whether through GPS Aids or GPS S&T Tools it won't be apparent immediately in file form. Continue to let the data push and let your GPS application of choice run for a few minutes, given some some to cache itself. On the next reboot of the system the files you are seeking should now be visible within the /data/gps folder.

There are ways to force the files to appear, prior to the system reboot, but I would recommend recycling the device to give all the data a chance to write itself where it needs to. - Think of the process of purging a buffer overrun file or the process of creating a memory dump log.

My point is that the process of how and when the data gets written is similar in this regard.

Hope this explanations helps with the understanding of what exactly is happening that you can't see...

HtH

Peace-
[Captivate Android Development] kevria:
I now seem to have some relative success. I was finally able to see enough satellites with beta10 that I got 200 meter accuracy, which dropped awhile later to 100meter, then 50, 30 and finally 10. I have never gotten below 30 meter accuracy with this phone.
[Captivate Android Development] Oxicottin:
Revert back to stock settings

Is there a CWM file to revert back to stock files and settings for the Samsung Captivate? Thanks!
[Captivate Android Development] Liv33viL:
Reversion to the Mean...

If you are referring to a generic stock default CWM for all Samsung Captivate devices... no.

You can, however, check the update file in the CWM for what is being updated with this flash and manually backup those files from your device before flashing.

This way you'll have a reversion if needed.

Peace-
[Captivate Android Development] crazililazn:
Man, with beta 10, No matter how many times I reboot or download AGPS data with GPS Aids/GPS Status, I still can't get a lock ><

Currently I am running Serendipity 6.3, Onix 2.0.4 OC, and JK4 modem x.x

Btw, I also noticed that when I try to download XTRA with GPS Aids, it never works.
[Captivate Android Development] akuru:
Tried all, still can't find neither lto.dat nor ltostatus.txt under /data/gps. Is it possible for these apps to save the downloaded lto.dat to a directory other than /data/gps?
[Captivate Android Development] D12AKO:
GPS Aids = EPIC FAIL for Me <---

When I was having issues with the GPS not downloading LTO files (Beta #9.x) my GPS still worked pretty well on it's own. As soon as I installed GPS Aids and forced LTO files my GPS stopped working altogether. Can't explain why but my Phone did not like the GPS Aids install. After this happened I decided to start with a Fresh install of Cog 4.3, followed by installing eXistZ Beta #8 Kernel and finally installed PlumbBob GPS Fix v2.0 Beta #10. Since this refresh of an install my GPS is working great and the LTO File downloads on it's own now.

So in my case, a fresh install solved all my issues and I now avoid GPS Aids like the plague...LOL
[Captivate Android Development] kevria:
I have Serendipity 6.3 also. When I did this I deleted the GPS Data, rebooted, wiped the Dalvik Cache, went into GPS Status and wiped the gps data and then went into GPS Aids and told it to download the LTO files twice. Then it worked.
[Captivate Android Development] reinbeau:
I had the exact same experience with GPS Aids. It broke my GPS. I 'fixed' it by installing 1.0 of this fix, and sticking to the tools I had already (GPS Status and LBSTest.Mode.
[Captivate Android Development] crazililazn:
I did exactly what you said, and the LTO files are there now. However, I still can't get a lock...