Jump to content

A-GPS tweak


Guest vanahaim

Recommended Posts

Guest vanahaim

Hi,

I tried to improve liquid A-GPS/GPS settings with tools from 1.100.15/1.100.63 bin and optimize for European users, especially for city positioning.

These mods has been tested so far only by me, so I can not guarantee the improvement that I noticed (faster and more accurate cold start) for all, there is a lot of ways to change A-GPS adjustment - so please, share your results.

Thanks!

I have decided to publish all versions of configurations, each of the servers provide little different information (different amounts of data received) - without longer testing is not possible to determine which information is more useful :angry:

Please, if you have earlier version installed, remove AcerAGps.apk from system/app (for example: adb shell - cd system/app - rm AcerAGps.apk)

Flash without sign check. (NOTE: if you push it via adb, reboot is required!)

Google version - Google servers with conservative settings and intermediate position reports

a_gps_mod___Google.zip

LG/Sony Ericsson- minimum required settings, no intermediate position report

a_gps_mod___LG.zip

a_gps_mod___SE.zip

FET version - debbuging, able to use secured supple port etc.

a_gps_mod___FET.zip

FET version 2 - please, activate with this version TLS in settings-location&security-AGPS - based on newest 1.100.63 FET bin with new libs - A-GPS app, no debbuging, able to use secured supple port, use supl ref location as position etc.

a_gps_mod___FET_vs.2.zip

To restore Acer original settings flash attached file. For earlier versions remove AcerAGps.apk from system/app (for example: adb shell - cd system/app - rm AcerAGps.apk).

a_gps_original.zip

Edited by vanahaim
Link to comment
Share on other sites

Guest vanahaim
hi vanahaim,

After update with your mod no change for me, acquiring GPS signal still very slow

Hi, where are you from? I can try to change the settings exactly for your country.. And where you use GPS most - urban area/free space?

Link to comment
Share on other sites

Guest snuskegard

Change the gps.config in system/etc to for example swedish or EU server:

*swedish code*

NTP_SERVER=0.se.pool.ntp.org

XTRA_SERVER_1=1.se.pool.ntp.org

XTRA_SERVER_2=2.se.pool.ntp.org

XTRA_SERVER_3=3.se.pool.ntp.org

*eu code*

NTP_SERVER=0.europe.pool.ntp.org

XTRA_SERVER_1=1.europe.pool.ntp.org

XTRA_SERVER_2=2.europe.pool.ntp.org

XTRA_SERVER_3=3.europe.pool.ntp.org

Here can you get the different servers: http://www.pool.ntp.org/zone/europe .

Link to comment
Share on other sites

Guest vanahaim

Thanks for the link!

I use europe.pool.ntp.org for the greatest number of users actually.. But this can be used to improvements for each country :(

But I´m not sure about XTRA_SERVER´s - pool doesn´t provide required bin files:

NTP is time server

Xtra bin file contains satellite position information

Edited by vanahaim
Link to comment
Share on other sites

Guest snuskegard

You are welcome!

I changed my original gps.config file wich look like you se below, original first and changed second.

Should i keep the "bin-lines" and only change the first line.

Either way am i getting a very fast lock on my position compare to the old gps.config file.

Original:

NTP_SERVER=europe.pool.ntp.org

XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin

XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin

XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin

SUPL_HOST=supl.google.com

SUPL_PORT=7276

# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info

# 4 - Debug, 5 - Verbose

DEBUG_LEVEL = 3

# Intermediate position report, 1=enable, 0=disable

INTERMEDIATE_POS=0

# Accuracy threshold for intermediate positions

# less accurate positions are ignored, 0 for passing all positions

ACCURACY_THRES=2500

# Wiper (wifi positioning), 1=enable, 0=disable

ENABLE_WIPER=1

################################

##### AGPS server settings #####

################################

# FOR SUPL SUPPORT, set the following

SUPL_HOST=agps.fetnet.net

SUPL_NO_SECURE_PORT=3425

SUPL_SECURE_PORT=7275

# FOR C2K PDE SUPPORT, set the following

# C2K_HOST=c2k.pde.com

# C2K_PORT=1234

#################################

##### AGPS Carrier settings #####

#################################

CURRENT_CARRIER=common

DEFAULT_AGPS_ENABLE=TRUE

DEFAULT_SSL_ENABLE=FALSE

# TRUE for "User Plane", FALSE for "Control Plane"

DEFAULT_USER_PLANE=TRUE

Changed:

NTP_SERVER=0.se.pool.ntp.org

XTRA_SERVER_1=1.se.pool.ntp.org

XTRA_SERVER_2=2.se.pool.ntp.org

XTRA_SERVER_3=3.se.pool.ntp.org

SUPL_HOST=supl.google.com

SUPL_PORT=7276

# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info

# 4 - Debug, 5 - Verbose

DEBUG_LEVEL = 3

# Intermediate position report, 1=enable, 0=disable

INTERMEDIATE_POS=0

# Accuracy threshold for intermediate positions

# less accurate positions are ignored, 0 for passing all positions

ACCURACY_THRES=2500

# Wiper (wifi positioning), 1=enable, 0=disable

ENABLE_WIPER=1

################################

##### AGPS server settings #####

################################

# FOR SUPL SUPPORT, set the following

SUPL_HOST=agps.fetnet.net

SUPL_NO_SECURE_PORT=3425

SUPL_SECURE_PORT=7275

# FOR C2K PDE SUPPORT, set the following

# C2K_HOST=c2k.pde.com

# C2K_PORT=1234

#################################

##### AGPS Carrier settings #####

#################################

CURRENT_CARRIER=common

DEFAULT_AGPS_ENABLE=TRUE

DEFAULT_SSL_ENABLE=FALSE

# TRUE for "User Plane", FALSE for "Control Plane"

DEFAULT_USER_PLANE=TRUE

Link to comment
Share on other sites

Guest snuskegard

I tried only changing the first line and keeping the bin-lines.

Did not work!

So i think i will stick with my changed file for now.

Edited by snuskegard
Link to comment
Share on other sites

Guest vanahaim
Should i keep the "bin-lines" and only change the first line.

I think yes, ´couse se.pool.ntp.org gives you current time and xtra servers the trajectory of GPS satellites and voi·là, you have approximate position of satellites to you..

Either way am i getting a very fast lock on my position compare to the old gps.config file.

Yop, with supl servers is lock faaast, I do not understand why Acer does not use this feature dafault..

I tried only changing the first line and keeping the bin-lines.

The result was much slower lock on my position.

So i think i will stick with my changed file for now.

It is due to the fact that when you've already downloaded once the satellite's position, so you are wasting lock-time with downloading again, but xtra bin files aren´t current indefinitely, after a few days will be faster to re-download xtra information before finding the satellite without any assistance.

Try new Google or SE version with Swedish NTP server, it could be faster for you..

Edited by vanahaim
Link to comment
Share on other sites

Guest vanahaim
I tried only changing the first line and keeping the bin-lines.

Did not work!

Strange :( Have you rebooted after changing the settings?

Link to comment
Share on other sites

Guest snuskegard

There we have it, didn't reboot! :(

I will try again.

....and it worked.

I will try the Google version.

Any way, with my "changed file" i get a faster cold start and better lock on position, even inside my house.

Edited by snuskegard
Link to comment
Share on other sites

Guest xaueious

I was wondering why my GPS was a little weird after flashing LCR. I'll play with these settings too.

Default Rogers one looks like this:

NTP_SERVER=north-america.pool.ntp.org

XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin

XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin

XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin

SUPL_HOST=supl.google.com

SUPL_PORT=7276
supl servers are missing from LCR ROM as well. This setup seems to pinpoint my location a lot faster here in Canada. I just changed the NTP server and added SUPL
NTP_SERVER=[b]north-america.pool.ntp.org[/b]

XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin

XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin

XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin

[b]SUPL_HOST=supl.google.com

SUPL_PORT=7276[/b]


# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info

#			   4 - Debug, 5 - Verbose

DEBUG_LEVEL = 1


# Intermediate position report, 1=enable, 0=disable

INTERMEDIATE_POS=1


# Accuracy threshold for intermediate positions

# less accurate positions are ignored, 0 for passing all positions

ACCURACY_THRES=5000


# Wiper (wifi positioning), 1=enable, 0=disable

ENABLE_WIPER=1


################################

##### AGPS server settings #####

################################


# FOR SUPL SUPPORT, set the following

# SUPL_HOST=supl.host.com or IP

# SUPL_NO_SECURE_PORT=1234

# SUPL_SECURE_PORT=5678


# FOR C2K PDE SUPPORT, set the following

# C2K_HOST=c2k.pde.com or IP

# C2K_PORT=1234


#################################

##### AGPS Carrier settings #####

#################################

CURRENT_CARRIER=common

DEFAULT_AGPS_ENABLE=TRUE

DEFAULT_SSL_ENABLE=FALSE


# TRUE for "User Plane", FALSE for "Control Plane"

DEFAULT_USER_PLANE=TRUE

I attached a flashable update.zip with this config for North America

Edited by xaueious
Link to comment
Share on other sites

Guest vanahaim
I just changed the NTP server and added SUPL

NTP_SERVER=north-america.pool.ntp.org

XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin

XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin

XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin

SUPL_HOST=supl.google.com

SUPL_PORT=7276

I attached a flashable update.zip with this config for North America

Try this for Canada: ca.pool.ntp.org

As for why Acer didn't ship the phone with it, they probably didn't talk to Google:

http://groups.google.com/group/android-pla...7acd01452?pli=1

:(

Nice :(

Edited by vanahaim
Link to comment
Share on other sites

Guest vanahaim

Would you be interested about dividing position settings according to the world (N/S America / Europe / Middle East / Asia)?

Edited by vanahaim
Link to comment
Share on other sites

Guest vanahaim
What do you mean by sharing position settings?

Ehm, sorry, language mistake.. :(

I thought, if you (all) are interested in creating different types of configurations by country for the better results (Canada, USA, GB, Germany, France, Italy, Hungary, Qatar, Australia, Honk Kong etc.)

Edited by vanahaim
Link to comment
Share on other sites

Guest vanahaim

Well, it is interesting that all the latest ROMs have suddenly improved A-GPS :( Anyway, at least it will be to help more people, but it's very funny. Peace.

Ale je to nasrávka, co si budem povídat..

Link to comment
Share on other sites

  • 2 weeks later...
Guest xian1243

@Vanahaim I didn't take any of your settings, just to reassure you. :) But thanks for the idea! I added some extra settings you haven't included :D

Great mod, by the way, it DOES improve!

Xian

Link to comment
Share on other sites

Guest vanahaim

I didn't take any of your settings, just to reassure you. :) But thanks for the idea! I added some extra settings you haven't included :D

Great mod, by the way, it DOES improve!

Xian

Thanks for the compliment:)

Yop, I've not named, if I happen to be wrong:) - as I wrote, if it will help more users, it's just as well ..

BTW I use your rom - is great, looking forward to a new 1100.63 version, and if you use my new FET treatment, I will be just honored;)

Edited by vanahaim
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.