OK, I tried to set mine up the same as yours. There were some other settings in there that I didn't delete though. Wanted to get your opinion on it as I haven't done nearly as much research as you on this.
Here's my conf file:
Code:
NTP_SERVER=0.us.pool.ntp.org
NTP_SERVER=1.us.pool.ntp.org
NTP_SERVER=2.us.pool.ntp.org
NTP_SERVER=3.us.pool.ntp.org
NTP_SERVER=0.north-america.pool.ntp.org
NTP_SERVER=1.north-america.pool.ntp.org
NTP_SERVER=2.north-america.pool.ntp.org
NTP_SERVER=3.north-america.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra2.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra2.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra2.bin
ENABLE_WIPER=1
#LGE_TLS_MODE=0
LPP_PROFILE=3
DEFAULT_AGPS_ENABLE=TRUE
A_GLONASS_POS_PROTOCOL_SELECT=0x4
CAPABILITIES=0x37
C2K_HOST=c2k.pde.com
INTERMEDIATE_POS=0
ERR_ESTIMATE=0
LGE_GPS_POSITION_MODE=0
C2K_PORT=1234
DEFAULT_USER_PLANE=TRUE
NMEA_PROVIDER=1
DEFAULT_SSL_ENABLE=FALSE
DEBUG_LEVEL=0
CURRENT_CARRIER=common
ENABLE_WIPER=1
ACCURACY_THRES=0
NMEA_PROVIDER=1
VENDOR=SPR
As for the arrangement, I didn't think it mattered much, but the layout was written by Faster GPS, which I used to make most of the changes except the extra NTP servers.
I also assumed that the debug level being set to 5 was because of your testing and didn't have anything to do with accuracy.
c2k is just another version of supl, I have taken out all references to supl. Even if c2k was working, that's not the correct port for it, not sure why so many gps.conf files come with that text in there like that. For supl to work properly you will need an appropriate supl.cert file and I don't have a Linux machine to create one for our specific device so any of the ones we can download aren't for our phone and therefore won't work properly. It's a matter of how the file is saved on our phone versus how we get it when we download the appropriate one for our devices. I might set up my office pc with a Linux partition so I can dink around with making one for our phone, but all it would do is make our GPS transmissions more secure. I'm not really worried about a hijacker intercepting my GPS requests and sending me false coordinates. I'd like to get it working eventually though just for the nerd points.
You have 'intermediate position' set to '0' which is off, but then have 'accuracy threshold' set to 0 as well, which means to accept all positions. You can put a 1 after intermediate position to get your GPS app to 'find' you sooner, as it will begin reporting your position before a full lock, but the 'accuracy threshold' set to 0 is going to allow ALL positions to be reported to your GPS app, whereas if you set an accuracy threshold of 5000 or smaller (I've seen as low as 80), only the positions within that accuracy threshold will be sent to your GPS app (whether it's GMaps or Ingress or Waze, etc).
The three "Default" lines (the "AGPS, USER_PLANE, and SSL_ENABLE) are related to supl as well, so I got rid of them. This is also why I have changed to LPP profile 1 instead of 3. 3 is to enable control plane and user plane, 1 is just to enable control plane, which is what the other codes are asking our gps to use (such as 'glonas' set to '0x4' and 'capabilities' set to '0x37')
You are correct about the debug level, it is just so I can get a full report on what is happening with my GPS.
Here is the gps.conf I have settled on:
Code:
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra1.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra2.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra3.bin
ERR_ESTIMATE=0
NTP_SERVER=north-america.pool.ntp.org
NTP_SERVER=0.north-america.pool.ntp.org
NTP_SERVER=1.north-america.pool.ntp.org
NTP_SERVER=2.north-america.pool.ntp.org
NTP_SERVER=3.north-america.pool.ntp.org
NTP_SERVER=us.pool.ntp.org
NTP_SERVER=0.us.pool.ntp.org
NTP_SERVER=1.us.pool.ntp.org
NTP_SERVER=2.us.pool.ntp.org
NTP_SERVER=3.us.pool.ntp.org
DEBUG_LEVEL = 5
INTERMEDIATE_POS=0
CAPABILITIES=0x37
LPP_PROFILE = 1
NMEA_PROVIDER=1
A_GLONASS_POS_PROTOCOL_SELECT = 0x4
VENDOR=SPR
LGE_GPS_POSITION_MODE=0
Sorry if you saw this post pre edit, I had to fix some formatting that copied over and made a bunch of html code get in the middle of my gps.conf info. The above is how it looks in my phone's gps conf. LPP profile 3 or 1 doesn't matter as long as you don't have any supl info in your gps conf file.
It appears that ntp and xtra servers do what supl would do if we enabled it. They all are related to "TTFF" or time to first fix; how long it takes your gps to lock for the first time. They all attempt to speed up the process by supplying information to a server then having our phone contact that server via or 3g or 4g/lte network to download the data faster rather than waiting up to 15 minutes for the 50k/sec transfer of data directly from the GPS satellites. Enabling supl, and xtra, and ntp, is sort of like getting three mechanics to work on your one engine at the same time; it might cause more problems than it fixes.