设为首页收藏本站

移动叔叔

搜索
查看: 3318|回复: 4

[讨论] 360n7gps信号差的修改gps.conf

[复制链接]
发表于 2021-10-4 12:25:15 | 显示全部楼层 |阅读模式
本帖最后由 as886944123 于 2021-10-12 16:22 编辑

前提 root用到软件是 re管理器
system/vcndor/etc 目录gps.conf文件打开编辑   system/etc 目录gps.conf文件打开编辑

#Asia   这个目录下修改 授时中心服务器 源代码NTP_SERVER=asia.pool.ntp.org删除 添加下面的

NTP_SERVER=203.107.6.88
NTP_SERVER=120.25.115.20
NTP_SERVER=111.230.189.174
NTP_SERVER=139.199.215.251
NTP_SERVER=139.199.214.202
NTP_SERVER=111.230.189.174
NTP_SERVER=139.199.215.251
c38374e66cb569db3bcaf5c83406e6c6_t0121e48bc819f8339c.jpg

这个是AGPS设置 如下

#SUPL_HOST=supl.host.com or IP

#SUPL_PORT=1234 目录下增加二行代码如下

SUPL_HOST=39.105.240.30
SUPL_PORT=7275
9ba1647f449a51d5a90d799df7177116_t019d8ae32eff4bbe8d.jpg

修改好保存重启手机第一次定位差不多5分钟  以后重启手机差不多10秒定位 不重启1秒定位
360n7root程序 adb命令程序 9008驱动 ADB驱动 GPS增强代码 re管理器 apk查看器 集合包下载地址
链接: https://pan.baidu.com/s/1wQNXx2HdDxkqt1pFibeFEg 提取码: ixvh
360n7 gps.conf文件已修改好 root好了直接用re管理器复制黏贴
链接: https://pan.baidu.com/s/1ec_S3d1eTZNI_yAhnFPS-A 提取码: fg7c

位置信息不能关闭要一直开着这样定位才能快  只要重启手机或者没电关机 手机一重启在空旷地带搜索gps卫星
位置信息里模式选择 仅限设备  是很省电的













 楼主| 发表于 2021-10-4 12:52:52 | 显示全部楼层
我的是卡刷092 版本
回复

使用道具 举报

 楼主| 发表于 2021-10-4 21:16:02 | 显示全部楼层
gps.conf文件

  android源码路径::

    hardware/qcom/gps/etc/gps.conf

  手机adb shell:

    vendor/etc/gps.conf



下面就开始解读gps.conf文件。

#Uncommenting these urls would only enable
#the power up auto injection and force injection(test case).

服务器速度相对最快的,可以在修改的时候把它放到XTRA_SERVER_1里面。

XTRA_SERVER_1=http://xtrapath1.izatcloud.net/xtra3grc.bin    XTRA_SERVER这个服务器是用来下载卫星通讯文件(如星历等)的,加快定位全靠它
XTRA_SERVER_2=http://xtrapath2.izatcloud.net/xtra3grc.bin    
XTRA_SERVER_3=http://xtrapath3.izatcloud.net/xtra3grc.bin

XTRA_DOWNLOAD_INTERVAL_CONFIG = 172800000      移动网络环境下XTRA下载间隔配置
XTRA_DOWNLOAD_INTERVAL_CONFIG_WIFI = 86400000    WIFI环境下XTRA下载间隔配置
#Version check for XTRA
#DISABLE = 0
#AUTO = 1
#XTRA2 = 2
#XTRA3 = 3
XTRA_VERSION_CHECK=0

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



#NTP server    NTP_SERVER是时间服务器

NTP_SERVER提供GPS基准时间服务器,这些服务器中有些服务器从地理位置上说离我们最近,它们所提供给我们的时间与标准时间之间的差别也最小,定位也就更精确。

#Asia      
NTP_SERVER=cn.pool.ntp.org       原子钟服务器在世界各地还有很多,可以参考www.pool.ntp.org。
NTP_SERVER=0.cn.pool.ntp.org
NTP_SERVER=1.cn.pool.ntp.org
NTP_SERVER=3.cn.pool.ntp.org
NTP_SERVER=2.cn.pool.ntp.org
NTP_SERVER=asia.pool.ntp.org
NTP_SERVER=1.asia.pool.ntp.org
NTP_SERVER=3.asia.pool.ntp.org
NTP_SERVER=2.asia.pool.ntp.org
NTP_SERVER=0.asia.pool.ntp.org
# NTP_SERVER=asia.pool.ntp.org      
#Europe
# NTP_SERVER=europe.pool.ntp.org        欧洲
#North America
# NTP_SERVER=north-america.pool.ntp.org     北美,服务器在美国,由于比较远,玩过网络游戏的都知道这个数值比较慢
#qualcomm
NTP_SERVER=time.izatcloud.net



#XTRA CA path
XTRA_CA_PATH=/system/etc/security/cacerts

# 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      gps HAL层logcat的开关,设置为5就可以打印所有hal层的log信息了



# Intermediate position report, 1=enable, 0=disable      中间定位状态是否上报粗略位置信息

修改INTERMEDIATE_POS和ACCURACY_THRES后,相当于降低了android系统的定位精度门槛,这样的好处是可以一定程度上提高定位速度,但前提是用户可以接受定位完成初始时间里定位精度下降的情况。
只要达到定位精度的门槛,android系统就会向app报告定位数据(如,经纬度,海拔,定位误差等),此时系统就是默认完成了定位(正常情况下,状态栏里的GPS图标会从闪烁状态变为已经定位的状态);但是显示定位精度是由app完成的
#INTERMEDIATE_POS=0       
INTERMEDIATE_POS=1      表明接受中间定位状态时上报的粗略位置信息

# 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
# supl version 2.0
SUPL_VER=0x20000

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

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

这个参数是增加的,使用紧急定位服务器,用来替换下面的SUPL_HOST(假如SUPL_HOST被屏蔽掉时),这应该是本次关键,当手机失去卫星信号后,不会使用基站位置信息,保持无卫星状态,所以不会飘。
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 overwrite 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=0x31    设置支持的一些定位模式

# Accuracy threshold for intermediate positions less accurate positions are ignored, 0 for passing all positions
# ACCURACY_THRES=5000
ACCURACY_THRES=800      中间定位状态上报的精度阈值;  设置您能够接受的粗略定位精度的门限值,一般的200对应5~10m,3000对应200m

################################
##### 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_PORT=7275
# SUPL_HOST=suplcn.sirf.com        传说中的A-GPS辅助定位服务器
# SUPL_PORT=7276
# SUPL_HOST=221.176.0.55
# SUPL_PORT=7276

# SUPL_HOST=supl.asia.com
# SUPL_HOST=suplcn.sirf.com
# SUPL_HOST=supl.google.com
# SUPL_HOST=supl.cn.com

这是基站定位服务器,可与前面的USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL配合使用。
SUPL_HOST=supl.qxwz.com    SUPL_HOST 是A-GPS服务器地址,据说谷歌的是最快的。
SUPL_PORT=7276         SUPL_PORT 是A-GPS服务器端口。

# 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    LTE定位配置文件设置
####################################
# 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 = 2
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=0

##################################################
# Select Positioning Protocol on A-GLONASS system    
##################################################
# 0x1: RRC CPlane
# 0x2: RRLP UPlane
# 0x4: LLP Uplane
A_GLONASS_POS_PROTOCOL_SELECT = 0    可能会影响定位时间

##################################################
# Select technology for LPPe Control Plane          LPPE控制平面的选择技术
##################################################
# 0x1: DBH for LPPe CP
# 0x2: WLAN AP Measurements for LPPe CP
# 0x4: SRN AP measurement for CP
# 0x8: Sensor Barometer Measurement LPPe CP
LPPE_CP_TECHNOLOGY = 0

##################################################
# Select technology for LPPe User PlaneLPPE        用户面选择技术
##################################################
# 0x1: DBH for LPPe UP
# 0x2: WLAN AP Measurements for LPPe UP
# 0x4: SRN AP measurement for UP
# 0x8: Sensor Barometer Measurement LPPe UP
LPPE_UP_TECHNOLOGY = 0

##################################################
# AGPS_CONFIG_INJECT
##################################################
# enable/disable injection of AGPS configurations:
# SUPL_VER
# SUPL_HOST
# SUPL_PORT
# C2K_HOST
# C2K_PORT
# LPP_PROFILE
# A_GLONASS_POS_PROTOCOL_SELECT
# 0: disable
# 1: enable
AGPS_CONFIG_INJECT = 1

以下不做说明

##################################################
# GNSS settings for automotive use cases
# Configurations in following section are
# specific to automotive use cases, others
# please do not change, keep the default values
##################################################



实际应用

  电信2G或3G使用版配置:
    NTP_SERVER=cn.pool.ntp.org
    XTRA_SERVER_1=http://xtra2.gpsonextra.net/xtra.bin
    XTRA_SERVER_2=http://xtra1.gpsonextra.net/xtra.bin
    XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
    SUPL_HOST=suplcn.sirf.com
    SUPL_PORT=7275
    PPP1_ID=ctwap@mycdma.cn
    PPP1_PW=vnet.mobi

  移动和联通使用版配置:
    NTP_SERVER=cn.pool.ntp.org
    XTRA_SERVER_1=http://xtra2.gpsonextra.net/xtra.bin
    XTRA_SERVER_2=http://xtra1.gpsonextra.net/xtra.bin
    XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
    SUPL_HOST=suplcn.sirf.com
    SUPL_PORT=7275

回复

使用道具 举报

 楼主| 发表于 2021-10-6 09:50:36 | 显示全部楼层
system/etc 目录也有个gps.conf文件
回复

使用道具 举报

发表于 2022-7-25 17:10:38 来自手机版 | 显示全部楼层
要是107版本也能用就好了

 

回复

使用道具 举报

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

关闭

站长推荐上一条 /1 下一条

© 2008-2024 移动叔叔. 版权所有,专业的网络售后平台 ( 闽ICP备18006692号-3 )

商务合作点击这里给我发消息|Email:service@mobileuncle.com|手机版|Archiver|移动叔叔     

GMT+8, 2024-4-16 12:48 , Processed in 0.179044 second(s), 18 queries , Gzip On, Memcache On.

返回顶部