Salve a tutti ^^ Sono da circa 2 anni che possiedo un LG G2 mini e da poco ho voluto informarmi riguardo alle soluzioni per quanto riguarda il GPS dato che, usandolo sia per gioco che per spostarmi, avrei bisogno di qualcosa che fosse stabile. Ho cercato in giro per la rete alcune soluzioni trovando nella modifica del gps.conf la soluzione più efficiente.
Mi scuso per il messaggio esageratamente lungo ma è per spiegare tutto nei minimi dettagli e capire se nei passaggi che ho effettuato ho fatto qualche errore stupido.
Prima di effettuare qualsiasi modifica ho utilizzato l'app GPS Stasus per vedere effettivamente le condizioni di base del mio GPS e come risultato ho ottenuto che ci impiegava 40 s per stabilizzare il segnale con un margine di errore di 12 m. Successivamente ho modificato il file gps.conf con questo codice:
codice:#Uncommenting these urls would only enable #the power up auto injection and force injection(test case). #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 # Error Estimate # _SET = 1 # _CLEAR = 0 ERR_ESTIMATE=0 #Test NTP_SERVER=time.gpsonextra.net #Asia # NTP_SERVER=asia.pool.ntp.org #Europe # NTP_SERVER=europe.pool.ntp.org #North America # NTP_SERVER=north-america.pool.ntp.org # 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 = 2 # Intermediate position report, 1=enable, 0=disable INTERMEDIATE_POS=0 # supl version 2.0 SUPL_VER=0x20000 # Emergency SUPL, 1=enable, 0=disable SUPL_ES=1 # 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=0x13 # 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.google.com SUPL_PORT=7276 # FOR C2K PDE SUPPORT, set the following # C2K_HOST=c2k.pde.com or IP # C2K_PORT=1234 #################################### # 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=0 ################################################## # Select Positioning Protocol on A-GLONASS system ################################################## # 0x1: RRC CPlane # 0x2: RRLP UPlane # 0x4: LLP Uplane A_GLONASS_POS_PROTOCOL_SELECT = 0 ########################################### # Enable/Disable reading H-SLP address and # certificates from the SIM card ########################################### # 0: Disable (Default) # 1: Enable ENABLE_READ_FROM_SIM = 0
e riavviato il telefono. Il risultato è stato che con GPS Status l'icona di posizione era visibile ma ci impiegava un tempo esageratamente più alto rispetto a prima a stabilizzarsi, quindi ho voluto provare un'altro codice differente per vedere i risultati :
notando che l'icona di posizione si attivava istantaneamente ma ,su GPS Status il tempo per stabilizzare il segnale risultava esagerato come con il primo codice .Infine ho deciso quindi di rimettere il vecchio file gps.conf e come risultato ho ottenuto che l'icona del GPS è scomparsa , nonostante l'app GPS Status mi indicasse che il GPS era attivo. Qualcuno saprebbe dirmi come poter ritornare a visualizzare l'icona (ho riavviato più e più volte il telefono ma la situazione è rimasta invariata) ?codice:# the time server, replace the "ro" # with your country code. # One ntp is all we need. NTP_SERVER=it.pool.ntp.org # the standard data servers AGPS=http : // xtra1 . gpsonextra . net/xtra.bin XTRA_SERVER_1=http : // xtra3.gpsonextra . net/xtra.bin XTRA_SERVER_2=http : // xtra2.gpsonextra . net/xtra.bin XTRA_SERVER_3=http : // xtra4 . gpsonextra . net/xtra.bin # enable the agps parsing DEFAULT_AGPS_ENABLE=TRUE DEFAULT_USER_PLANE=TRUE DEFAULT_SSL_ENABLE=FALSE # the modem capabilities, using 3G, # using Glonass via 3G, # using standalone LG method CAPABILITIES=0x37 LPP_PROFILE=0 A_GLONASS_POS_PROTOCOL_SELECT=0x2 LGE_GPS_POSITION_MODE=0 # for super fast preliminary locking without major errors INTERMEDIATE_POS=1 ACCURACY_THRES=3000 # we declare the quality we need QOS_ACCURACY=50 QOS_TIME_OUT_AGPS=95 QOS_TIME_OUT_STANDALONE=80 QosVerticalThreshold=500 QosHorizontalThreshold=1000 # better and faster aGPS AssistMethodType=1 AgpsUse=1 AgpsServerType=1 AgpsServerIp=3232235555 AgpsMtConf=0 AgpsMtResponseType=1 # we replace the not working supl.google.com # with the more geo-friendly nokia SUPL_HOST=supl.nokia.com SUPL_PORT=7275 SUPL_NO_SECURE_PORT=3425 SUPL_TLS_HOST=supl.nokia.com SUPL_SECURE_PORT=7275 SUPL_TLS_CERT=/etc/SuplRootCert REPORT_POSITION_USE_SUPL_REFLOC=1 #indoor QUIPC_ENABLED=1 # NMEA provider NMEA_PROVIDER=1 #general PHONE_TYPE=UMTS CURRENT_CARRIER=common
PS: ho dovuto modificare il codice nelle zone http perchè mi il sistema li identificava come url

LinkBack URL
About LinkBacks
Rispondi quotando
