zoukankan      html  css  js  c++  java
  • 更改gps.conf来加快GPS搜星速度

    国内NTP Server
    NTP全称是Network Time Protocol,是用来让计算机之间实现时间同步的协议,而发布这种校对时间的服务器,就是NTP Server!一般来说客户端与服务器之间的时间误差在几十毫秒以内,当然,如果你的时间服务器在美国或者欧洲,误差可能稍大一些。在我们的日常生活中,能接触到NTP的也基本就是手机gps的默认NTP Server是xtra1.gpsonextra.n et 误差可能稍大一些,联网时间更长。

    国内的NTP Server基本都属于科研教育机构所有,普通社*会组织发布的NTP Server并不多,以下是我搜集的一些国内可用的NTP Server:

    1.c n.pool.ntp.org 
    2.c n.pool.ntp.org
    3.c n.pool.ntp.org
    0.c n.pool.ntp.org 
    cn.pool.ntp.org 
    tw.pool.ntp.org 
    0.tw.pool.ntp.org 
    1.tw.pool.ntp.org 
    2.tw.pool.ntp.org 
    3.tw.pool.ntp.org 
    这十台服务器从地理位置上说离我们最近,它们所提供给我们的时间与标准时间之间的差别也最小,在国内使用,精度完全够用!更快速

    首先要ROOT,用RE打开system/etc/gps.conf
    把里面的NTP_SERVE=xtra1.gpsonextra.n et
    等号后面的服务器地址改成cn.pool.ntp.org或上面几个中的的一个就可以了,
    其他的不用改,然后保存重启,
    首次定位可能有点慢,但以后都可以秒定,
    没有SUPL_HOST=supl.google.com
    SUPL_PORT=7276
    NTP_SERVER是时间服务器,
    XTRA星历服务器,下载星历,加快定位全靠它
    SUPL_HOST是A-GPS服务器地址,据说谷歌的是最快的,
    SUPL_PORT 是A-GPS服务器端口

    可以增加

    最后变成
    NTP_SERVER=cn.pool.ntp.org
    XTRA_SERVER_1=http://xtra1.gpsonextra.n et/xtra.bin
    XTRA_SERVER_2=http://xtra2.gpsonextra.n et/xtra.bin
    XTRA_SERVER_3=http://xtra3.gpsonextra.n et/xtra.bin
    SUPL_HOST=supl.google.com
    SUPL_PORT=7276

    高德导航秒定的设置
    1.修改GPS.conf配置文件:

    用R.E进入/system/etc/GPS.conf,挂载为 读写   模式
    NTP_server=1.c n.pool.ntp.org  (ping了一下,这个最快)
    此项为提供GPS基准时间服务器:
    可以选cn.pool.ntp.org 或 1.c n.pool.ntp.org 或 2.c n.pool.ntp.org  或 3.c n.pool.ntp.org 或 north-america.pool.ntp.org(我的原来是这个,但昨晚试了此地址ping不通,难道是这个影响的?)
    将里面的  XTRA_SERVER_1=http://xtra2.gpsonextra.n et/xtra.bin
                    XTRA_SERVER_1=http://xtra1.gpsonextra.n et/xtra.bin
                    XTRA_SERVER_1=http://xtra3.gpsonextra.n et/xtra.bin

         改成  XTRA_SERVER_1=http://xtra1.gpsonextra.n et/xtra.bin
                  XTRA_SERVER_1=http://xtra2.gpsonextra.n et/xtra.bin
                  XTRA_SERVER_1=http://xtra3.gpsonextra.n et/xtra.bin
    此项为XTRA星历服务器,下载星历,加快定位全靠它了。

    将里面的  SUPL_HOST=supl.google.com
         改成    SUPL_HOST=supl.c n.com
                    SUPL_port=7276 改不改无所谓

    2.下载了一个高德搜星补丁(据说这是给凯*立德的,高德也很有效),解压后将SJce6.0-sdmsc.boot.4-8.dll文件复制到卡中的autonavidata50文件夹中。

    导航时,打开GPS和移动网络,改好后,昨晚在家中窗边能收到4颗星(我住5楼),今早出门立马收到7颗星,并立即定位成功,不知道是上面哪一项改动起了关键作用,反正效果很好,定位秒定,上班一路都没有掉星现象,很不错。给搜星慢的朋友一个参考哈。

    -----------------------------------------------------------------------------------------------------------------------------------------

    NTP_SERVER=3.cn.pool.ntp.org
    NTP_SERVER=0.cn.pool.ntp.org
    NTP_SERVER=1.cn.pool.ntp.org
    NTP_SERVER=2.cn.pool.ntp.org
    NTP_SERVER=3.asia.pool.ntp.org
    NTP_SERVER=2.asia.pool.ntp.org
    NTP_SERVER=1.asia.pool.ntp.org
    NTP_SERVER=0.asia.pool.ntp.org
    NTP_SERVER=210.72.145.44
    XTRA_SERVER_1=http://gllto.glpals.com/4day/glo/v2/latest/lto2.dat
    XTRA_SERVER_2=http://gllto.glpals.com/4day/glo/v2/latest/lto2.dat
    XTRA_SERVER_3=http://gllto.glpals.com/4day/glo/v2/latest/lto2.dat
    SUPL_HOST=suplcn.sirf.com
    SUPL_HOST=supl.nokia.com
    SUPL_HOST=221.176.0.55
    SUPL_PORT=7276

  • 相关阅读:
    LeetCode 345. Reverse Vowels of a String 题解
    LeetCode 344. Reverse String 题解
    LeetCode 27. Remove Element 题解
    LeetCode 61. Rotate List 题解
    LeetCode 19.Remove Nth Node From End of List 题解
    Android耗电量
    Android 使用adb查看和修改电池信息
    Android AOP AspectJ 插桩
    Flask相关用法
    Monkey日志信息的11种Event percentage
  • 原文地址:https://www.cnblogs.com/hechunhua/p/4097243.html
Copyright © 2011-2022 走看看