查看: 442|回复: 0

[讨论] 共享一个gps.conf文件

[复制链接]
发表于 2016-5-28 19:23:25 | 显示全部楼层 |阅读模式
#官方论坛发不了,试试这里吧;#k920中原文件修改的,大家注意,前面有#的是注释说明,不是执行语句;另外有些地方我加了一些解释,仅供大家参考,定位快不快也不是一个gps.conf就可以解决的,还得多折腾摸索。

#Uncommenting these urls would only enable
#the power up auto injection and force injection(test case).
XTRA_SERVER_1=http://xtrapath1.izatcloud.net/xtra2.bin
XTRA_SERVER_2=http://xtrapath2.izatcloud.net/xtra2.bin
XTRA_SERVER_3=http://xtrapath3.izatcloud.net/xtra2.bin
#上面三句我已去掉了前面的#,不去可以32颗星可见但定位不见得快,去了让其生效就20多颗星可见了但定位反而快。

#Version check for XTRA
#DISABLE = 0
#AUTO    = 1
#XTRA2   = 2
#XTRA3   = 3
XTRA_VERSION_CHECK=1
#上面这句原值为0我改成了1,反正auto貌似也无害吧

# Error Estimate
# _SET = 1
# _CLEAR = 0
ERR_ESTIMATE=0

NTP_SERVER=cn.pool.ntp.org
NTP_SERVER=0.cn.pool.ntp.org
NTP_SERVER=asia.pool.ntp.org
NTP_SERVER=time.gpsonextra.net
NTP_SERVER=europe.pool.ntp.org
NTP_SERVER=north-america.pool.ntp.org
#上面几个是并列的,我在想若只保留一个ping得快的是不是效果更好?

# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
#               4 - Debug, 5 - Verbose
# If DEBUG_LEVEL is commented, Android's logging levels will be used
DEBUG_LEVEL = 3

# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=0
#据说这句的意思是防止漂移

# Below bit mask configures how GPS functionalities
# should be locked when user turns off GPS on Settings
# Set bit 0x1 if MO GPS functionalities are to be locked
# Set bit 0x2 if NI GPS functionalities are to be locked
# default - non is locked for backward compatibility
#GPS_LOCK = 0

# supl version 1.0
SUPL_VER=0x10000

# Emergency SUPL, 1=enable, 0=disable
SUPL_ES=1

#Choose PDN for Emergency SUPL
#1 - Use emergency PDN
#0 - Use regular SUPL PDN for Emergency SUPL
USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL=1

#SUPL_MODE is a bit mask set in config.xml per carrier by default.
#If it is uncommented here, this value will over write the value from
#config.xml.
#MSA=0X2
#MSB=0X1
#SUPL_MODE=

# GPS Capabilities bit mask
# SCHEDULING = 0x01
# MSB = 0x02
# MSA = 0x04
# ON_DEMAND_TIME = 0x10
# GEOFENCE = 0x20
# default = ON_DEMAND_TIME | MSA | MSB | SCHEDULING | GEOFENCE
CAPABILITIES=0x37

# Accuracy threshold for intermediate positions
# less accurate positions are ignored, 0 for passing all positions
# ACCURACY_THRES=5000

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

# FOR SUPL SUPPORT, set the following
# SUPL_HOST=supl.host.com or IP
# SUPL_PORT=1234
#SUPL_HOST=supl.nokia.com
#SUPL_HOST=supl.cn.com
#SUPL_HOST=supl.asia.com
SUPL_HOST=suplcn.sirf.com
SUPL_PORT=7276
#只保留了上面一个supl服务器,大家也可以测试其它服务器和端口,但有些手机甚至取消了SUPL照样可以定位。

# FOR C2K PDE SUPPORT, set the following
# C2K_HOST=c2k.pde.com or IP
# C2K_PORT=1234

# Bitmask of slots that are available
# for write/install to, where 1s indicate writable,
# and the default value is 0 where no slots
# are writable. For example, AGPS_CERT_WRITABLE_MASK
# of b1000001010 makes 3 slots available
# and the remaining 7 slots unwritable.
#AGPS_CERT_WRITABLE_MASK=0

####################################
#  LTE Positioning Profile Settings
####################################
# 0: Enable RRLP on LTE(Default)
# 1: Enable LPP_User_Plane on LTE
# 2: Enable LPP_Control_Plane
# 3: Enable both LPP_User_Plane and LPP_Control_Plane
LPP_PROFILE = 0

################################
# EXTRA SETTINGS
################################
# NMEA provider (1=Modem Processor, 0=Application Processor)
NMEA_PROVIDER=0
# Mark if it is a SGLTE target (1=SGLTE, 0=nonSGLTE)
SGLTE_TARGET=1
#原来就是1,但很多手机这句为0,k920不是SGLTE格式吗,应该为1呀,不明觉厉

##################################################
# Select Positioning Protocol on A-GLONASS system
##################################################
# 0x1: RRC CPlane
# 0x2: RRLP UPlane
# 0x4: LLP Uplane
A_GLONASS_POS_PROTOCOL_SELECT = 1
#这个值原来是0的,几乎所有手机都是0,但我就敢把它改成1,吃吃螃蟹也无妨吧。

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关注公众号
关于盛悦|手机版|小黑屋|盛悦网

相关侵权、举报、投诉及建议等,请发 E-mail:admin@discuz.vip

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.|粤ICP备12017825号

在本版发帖
关注公众号
QQ客服返回顶部