Related
No credits for me, i only want to purpose an interesting thread to speed up your GPS fix!
http://forum.xda-developers.com/showthread.php?t=1060963
Really awesome!
Try yourself!
call me retarded if need be but i didnt understand much of what he said, do you think you could explain what you did for me, any help is greatly appreciated, as i havent been able to use my gps in a long time.
You have do edit this file, use Root Explorer to copy it without using adb.
/etc/gps.conf
Delete all content and put this:
Code:
NTP_SERVER=0.fr.pool.ntp.org
NTP_SERVER=1.fr.pool.ntp.org
NTP_SERVER=2.fr.pool.ntp.org
NTP_SERVER=3.fr.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
# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
DEBUG_LEVEL =0
# 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=0
# Report supl ref location as position, 1=enable, 0=disable
REPORT_POSITION_USE_SUPL_REFLOC=1
# Wiper (wifi positioning), 1=enable, 0=disable
ENABLE_WIPER=1
################################
##### AGPS server settings #####
################################
# FOR SUPL SUPPORT, set the following
SUPL_HOST=supl.google.com
SUPL_PORT=7276
SUPL_NO_SECURE_PORT=7276
SUPL_SECURE_PORT=7276
# 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
Open this site(http://www.pool.ntp.org/en/) and choose your favourites NTP servers from the right menu (Active servers), which have to be replaced in these strings.
For example I am Italian, in the site i have finded these servers:
Code:
server 0.it.pool.ntp.org
server 1.it.pool.ntp.org
server 2.it.pool.ntp.org
server 3.it.pool.ntp.org
Now in my gps.conf I have to replace first four lines with:
Code:
NTP_SERVER=0.it.pool.ntp.org
NTP_SERVER=1.it.pool.ntp.org
NTP_SERVER=2.it.pool.ntp.org
NTP_SERVER=3.it.pool.ntp.org
Save your file, delete original /etc/gps.conf and place your new gps.conf.
NOTE: Be sure to assign at the new file the same permissions of the old. Using root explorer for this, long-press to the file -> permissions.
Sorry for my bad english!
worked amazingly well, gps lock immediate, normally it only seemed to be a maybe thing. and every program is now accurate, for some reason only google navigation could read properly when it worked. thank you very much, and your english was very easy to understand.
Works amazingly, locked on in 10 second.
fede91it said:
You have do edit this file, use Root Explorer to copy it without using adb.
/etc/gps.conf
Delete all content and put this:
Code:
NTP_SERVER=0.fr.pool.ntp.org
NTP_SERVER=1.fr.pool.ntp.org
NTP_SERVER=2.fr.pool.ntp.org
NTP_SERVER=3.fr.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
# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
DEBUG_LEVEL =0
# 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=0
# Report supl ref location as position, 1=enable, 0=disable
REPORT_POSITION_USE_SUPL_REFLOC=1
# Wiper (wifi positioning), 1=enable, 0=disable
ENABLE_WIPER=1
################################
##### AGPS server settings #####
################################
# FOR SUPL SUPPORT, set the following
SUPL_HOST=supl.google.com
SUPL_PORT=7276
SUPL_NO_SECURE_PORT=7276
SUPL_SECURE_PORT=7276
# 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
Open this site(http://www.pool.ntp.org/en/) and choose your favourites NTP servers from the right menu (Active servers), which have to be replaced in these strings.
For example I am Italian, in the site i have finded these servers:
Code:
server 0.it.pool.ntp.org
server 1.it.pool.ntp.org
server 2.it.pool.ntp.org
server 3.it.pool.ntp.org
Now in my gps.conf I have to replace first four lines with:
Code:
NTP_SERVER=0.it.pool.ntp.org
NTP_SERVER=1.it.pool.ntp.org
NTP_SERVER=2.it.pool.ntp.org
NTP_SERVER=3.it.pool.ntp.org
Save your file, delete original /etc/gps.conf and place your new gps.conf.
NOTE: Be sure to assign at the new file the same permissions of the old. Using root explorer for this, long-press to the file -> permissions.
Sorry for my bad english!
Click to expand...
Click to collapse
Great tweak ! by the way, i use FasterFix and i write "2.be.pool.ntp.org" in the field and the effect seems the same one, .. but you made me discover NTP servers and I thank you!
Sky
alain.duchateau said:
Great tweak ! by the way, i use FasterFix and i write "2.be.pool.ntp.org" in the field and the effect seems the same one, .. but you made me discover NTP servers and I thank you!
Sky
Click to expand...
Click to collapse
With FasterFix you only change NTP server, you don't add all extra specifications and AGPS directives.
flashed the zip from the original post in the Nexus S thread and it works like a charm. faster en better fix then ever. Seems a lot easier than all the editing. Or am I missing something?
If you don't want to change FR servers you haven't to do other. I have changed them to IT servers, for this reason i haven't used flash zip but manual method.
can someone create a zip file for United States? I've used root explorer but it doesn't seem to change to US.. Oh, one more question, the zip file can be installed using rom manager?
Thanks in advance.
Oh, this thread is so full of wrongness it would easily win the world championship of fudge.
Of all the parameters mentioned here additionally to the NTP and EXTRA server settings only
Code:
gps_conf.INTERMEDIATE_POS = 0;
gps_conf.ACCURACY_THRES = 0;
gps_conf.ENABLE_WIPER = 0;
gps_conf.DEBUG_LEVEL = 4;
are actually implemented.
ENABLE_WIPER doesn't even have any effect at all (it's never checked anywhere). WiFi position reporting can be enabled in the system settings.
Please share your corrected gps.conf
fede91it said:
Please share your corrected gps.conf
Click to expand...
Click to collapse
for Belgium, here is my gps.conf :
NTP_SERVER=0.be.pool.ntp.org
NTP_SERVER=1.be.pool.ntp.org
NTP_SERVER=1.fr.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
# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
DEBUG_LEVEL =0
# 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=0
# Report supl ref location as position, 1=enable, 0=disable
REPORT_POSITION_USE_SUPL_REFLOC=1
# Wiper (wifi positioning), 1=enable, 0=disable
ENABLE_WIPER=1
################################
##### AGPS server settings #####
################################
# FOR SUPL SUPPORT, set the following
SUPL_HOST=supl.google.com
SUPL_PORT=7276
SUPL_NO_SECURE_PORT=7276
SUPL_SECURE_PORT=7276
# 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 hope this can help you
With the updated gps.conf, i get fixed in 10 secs
Since I keep seeing this problem raised in all the development threads I've decided to add this information here.
I hope this will help others too. I had no problem with GPS on any Custom ROM like CM, Carbon, OMNI or AOKP after following the instructions below.
87Fra87 said:
What i can do to resolve the problem of GPS?
Click to expand...
Click to collapse
First thing is first: TIME is ESSENTIAL for GPS, and here is why:
Essentially, the GPS receiver compares the time a signal was transmitted by a satellite with the time it was received. The time difference tells the GPS receiver how far away the satellite is. Now, with distance measurements from a few more satellites, the receiver can determine the user's position and display it on the unit's electronic map.
Click to expand...
Click to collapse
In order for you to get the correct time you will need to edit the GPS.conf file and add the NTP servers for your geography (country and continent).
Find your NTP server here:
http://www.pool.ntp.org/en/
Preferably use a GPS.conf file from your stock XV Rom as template (I've added one below)
NTP_SERVER=time.gpsonextra.net
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra2.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra2.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra2.bin
# 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
# supl version 1.0
SUPL_VER=0x10000
# Error Estimate
# _SET = 1
# _CLEAR = 0
ERR_ESTIMATE=0
# GPS Capabilities bit mask
# SCHEDULING = 1
# MSB = 2
# MSA = 4
# ULP = 0x20
# default = MSA | MSB | SCHEDULING | ULP
CAPABILITIES=0x3
# 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.sonyericsson.com
SUPL_PORT=7275
# FOR C2K PDE SUPPORT, set the following
# C2K_HOST=c2k.pde.com or IP
# C2K_PORT=1234
################################
# Sensor Settings
################################
# Needs to be set explicitly based on sensor
# There is no default value.
#GYRO_BIAS_RANDOM_WALK=
# Sensor Sampling Rate Parameters for Low-Data Rate Filter (should be greater than 0)
SENSOR_ACCEL_BATCHES_PER_SEC=2
SENSOR_ACCEL_SAMPLES_PER_BATCH=5
SENSOR_GYRO_BATCHES_PER_SEC=2
SENSOR_GYRO_SAMPLES_PER_BATCH=5
# Sensor Sampling Rate Parameters for High-Data Rate Filter (should be greater than 0)
SENSOR_ACCEL_BATCHES_PER_SEC_HIGH=4
SENSOR_ACCEL_SAMPLES_PER_BATCH_HIGH=25
SENSOR_GYRO_BATCHES_PER_SEC_HIGH=4
SENSOR_GYRO_SAMPLES_PER_BATCH_HIGH=25
# Sensor Control Mode (0=AUTO, 1=FORCE_ON)
SENSOR_CONTROL_MODE=0
# Enable or Disable Sensors for GPS use (0=Enable, 1=Disable)
SENSOR_USAGE=1
# Choose GSIFF sensor provider (1=DSPS, 2=Android NDK)
SENSOR_PROVIDER=1
################################
# Indoor Positioning Settings
################################
# 0: QUIPC disabled, 1: QUIPC enabled, 2: forced QUIPC only
QUIPC_ENABLED = 0
################################
# EXTRA SETTINGS
################################
# Enable or Disable Wiper (1=Enable, 0=Disable)
ENABLE_WIPER=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
Click to expand...
Click to collapse
Supplementary, look on the internet and see how is the Glonass satellite coverage in your area - if it's problematic, this may impede getting a fast first fix.
GLONASS coverage:
http://glonass-iac.ru/en/
After implementing the change use a good navigation application to get the FIRST fix - I prefer Sygic.
There is a big difference - I get a MUCH faster fix with Sygic than with other applications such as (but not limited to) GPS Status&Toolbox.
Afterwards, your TTFF (time to first fix) will drastically improve, even in other apps, such as Ingress.
!!! > Not properly tested yet:
Differential Global Positioning System (DGPS) is an enhancement to Global Positioning System that provides improved location accuracy, from the 15-meter nominal GPS accuracy to about 10 cm in case of the best implementations.
DGPS uses a network of fixed, ground-based reference stations to broadcast the difference between the positions indicated by the satellite systems and the known fixed positions. These stations broadcast the difference between the measured satellite pseudoranges and actual (internally computed) pseudoranges, and receiver stations may correct their pseudoranges by the same amount. The digital correction signal is typically broadcast locally over ground-based transmitters of shorter range.
The term refers to a general technique of augmentation
You should be able to use DGPS corrections in Europe via custom application for SISnet receiving correction signals from EGNOS augmentation satellites.
The Android app is available under the link below:
http://egnos-portal.gsa.europa.eu/news/egnos-gets-invite-your-smartphone-11
Sent from my Xperia V using Tapatalk
Wifi range is terrible and keeps disconnecting me, what's the best way to edit these settings?
Code:
# This file allows user to override the factory
# defaults for the WLAN Driver
# Enable IMPS or not
gEnableImps=1
# Enable/Disable Idle Scan
gEnableIdleScan=0
# Increase sleep duration (seconds) during IMPS
# 0 implies no periodic wake up from IMPS. Periodic wakeup is
# unnecessary if Idle Scan is disabled.
gImpsModSleepTime=0
# Enable BMPS or not
gEnableBmps=0
# Enable suspend or not
# 1: Enable standby, 2: Enable Deep sleep, 3: Enable Mcast/Bcast Filter
gEnableSuspend=3
# Phy Mode (auto, b, g, n, etc)
# Valid values are 0-9, with 0 = Auto, 4 = 11n, 9 = 11ac
gDot11Mode=0
# Handoff Enable(1) Disable(0)
gEnableHandoff=0
# CSR Roaming Enable(1) Disable(0)
gRoamingTime=0
# Assigned MAC Addresses - This will be used until NV items are in place
# Each byte of MAC address is represented in Hex format as XX
Intf0MacAddress=000AF58989FF
Intf1MacAddress=000AF58989FE
Intf2MacAddress=000AF58989FD
Intf3MacAddress=000AF58989FC
# UAPSD service interval for VO,VI, BE, BK traffic
InfraUapsdVoSrvIntv=0
InfraUapsdViSrvIntv=0
InfraUapsdBeSrvIntv=0
InfraUapsdBkSrvIntv=0
# Make 1x1 the default antenna configuration
gNumRxAnt=1
# Beacon filtering frequency (unit in beacon intervals)
gNthBeaconFilter=50
# Enable WAPI or not
# WAPIIsEnabled=0
# Flags to filter Mcast abd Bcast RX packets.
# Value 0: No filtering, 1: Filter all Multicast.
# 2: Filter all Broadcast. 3: Filter all Mcast abd Bcast
McastBcastFilter=3
#Flag to enable HostARPOffload feature or not
hostArpOffload=1
#SoftAP Related Parameters
# AP MAc addr
gAPMacAddr=000AF589dcab
# 802.11n Protection flag
gEnableApProt=1
#Enable OBSS protection
gEnableApOBSSProt=1
#Enable TrafficMonitor
gEnableTrafficMonitor=1
#Set TracfficIdleTimeout
gTrafficIdleTimeout=3000
#Enable/Disable UAPSD for SoftAP
gEnableApUapsd=0
# Fixed Rate
gFixedRate=0
# Maximum Tx power
# gTxPowerCap=100
# Fragmentation Threshold
# gFragmentationThreshold=2346
# RTS threshold
RTSThreshold=2347
# Intra-BSS forward
gDisableIntraBssFwd=0
# WMM Enable/Disable
WmmIsEnabled=0
# 802.11d support
g11dSupportEnabled=1
# 802.11h support
g11hSupportEnabled=1
# CCX Support and fast transition
CcxEnabled=0
FastTransitionEnabled=1
ImplicitQosIsEnabled=1
gNeighborScanTimerPeriod=200
gNeighborLookupThreshold=76
gNeighborReassocThreshold=81
gNeighborScanChannelMinTime=20
gNeighborScanChannelMaxTime=30
gMaxNeighborReqTries=3
# Legacy (non-CCX, non-802.11r) Fast Roaming Support
# To enable, set FastRoamEnabled=1
# To disable, set FastRoamEnabled=0
FastRoamEnabled=1
#Check if the AP to which we are roaming is better than current AP in terms of RSSI.
#Checking is disabled if set to Zero.Otherwise it will use this value as to how better
#the RSSI of the new/roamable AP should be for roaming
RoamRssiDiff=3
# If the RSSI of any available candidate is better than currently associated
# AP by at least gImmediateRoamRssiDiff, then being to roam immediately (without
# registering for reassoc threshold).
# NOTE: Value of 0 means that we would register for reassoc threshold.
gImmediateRoamRssiDiff=10
# To enable, set gRoamIntraBand=1 (Roaming within band)
# To disable, set gRoamIntraBand=0 (Roaming across band)
gRoamIntraBand=0
# SAP Country code
# Default Country Code is 2 bytes, 3rd byte is optional indoor or out door.
# Example
# US Indoor, USI
# Korea Outdoor, KRO
# Japan without optional byte, JP
# France without optional byte, FR
#gAPCntryCode=USI
#Short Guard Interval Enable/disable
gShortGI20Mhz=1
gShortGI40Mhz=1
#Auto Shutdown Value in seconds. A value of 0 means Auto shutoff is disabled
gAPAutoShutOff=0
# SAP auto channel selection configuration
# 0 = disable auto channel selection
# 1 = enable auto channel selection, channel provided by supplicant will be ignored
gApAutoChannelSelection=1
# Listen Energy Detect Mode Configuration
# Valid values 0-128
# 128 means disable Energy Detect feature
# 0-9 are threshold code and 7 is recommended value from system if feature is to be enabled.
# 10-128 are reserved.
# The EDET threshold mapping is as follows in 3dB step:
# 0 = -60 dBm
# 1 = -63 dBm
# 2 = -66 dBm
# ...
# 7 = -81 dBm
# 8 = -84 dBm
# 9 = -87 dBm
# Note: Any of these settings are valid. Setting 0 would yield the highest power saving (in a noisy environment) at the cost of more range. The range impact is approximately #calculated as:
#
# Range Loss (dB) = EDET threshold level (dBm) + 127 dBm.
#
gEnablePhyAgcListenMode=128
#Preferred channel to start BT AMP AP mode (0 means, any channel)
BtAmpPreferredChannel=0
#Preferred band (both or 2.4 only or 5 only)
BandCapability=0
#Beacon Early Termination (1 = enable the BET feature, 0 = disable)
enableBeaconEarlyTermination=0
beaconEarlyTerminationWakeInterval=3
#Bluetooth Alternate Mac Phy (1 = enable the BT AMP feature, 0 = disable)
gEnableBtAmp=0
#SOFTAP Channel Range selection
gAPChannelSelectStartChannel=1
gAPChannelSelectEndChannel=11
#SOFTAP Channel Range selection Operating band
# 0:2.4GHZ 1: LOW-5GHZ 2:MID-5GHZ 3:HIGH-5GHZ 4: 4.9HZ BAND
gAPChannelSelectOperatingBand=0
#Channel Bonding
gChannelBondingMode5GHz=1
#Enable Keep alive with non-zero period value
#gStaKeepAlivePeriod = 30
#AP LINK MONITOR TIMEOUT is used for both SAP and GO mode.
#It is used to change the frequency of keep alive packets in the AP Link Monitor period which is by
#default 20s. Currently the keep alive packets are sent as an interval of 3s but after this change
#the keep alive packet frequency can be changed.
#gApLinkMonitorPeriod = 3
#If set will start with active scan after driver load, otherwise will start with
#passive scan to find out the domain
gEnableBypass11d=1
#If set to 0, will not scan DFS channels
gEnableDFSChnlScan=1
gVhtChannelWidth=2
gEnableLogp=1
# Enable Automatic Tx Power control
gEnableAutomaticTxPowerControl=1
# 0 for OLPC 1 for CLPC and SCPC
gEnableCloseLoop=1
#Data Inactivity Timeout when in powersave (in ms)
gDataInactivityTimeout=200
# VHT Tx/Rx MCS values
# Valid values are 0,1,2. If commented out, the default value is 0.
# 0=MCS0-7, 1=MCS0-8, 2=MCS0-9
gVhtRxMCS=2
gVhtTxMCS=2
# Enable CRDA regulatory support by settings default country code
#gCrdaDefaultCountryCode=TW
# Scan Timing Parameters
# gPassiveMaxChannelTime=110
# gPassiveMinChannelTime=60
# gActiveMaxChannelTime=40
# gActiveMinChannelTime=20
#If set to 0, MCC is not allowed.
gEnableMCCMode=1
# 1=enable STBC; 0=disable STBC
gEnableRXSTBC=1
# Enable Active mode offload
gEnableActiveModeOffload=1
#Enable Scan Results Aging based on timer
#Timer value is in seconds
#If Set to 0 it will not enable the feature
gScanAgingTime=0
#Enable Power saving mechanism Based on Android Framework
#If set to 0 Driver internally control the Power saving mechanism
#If set to 1 Android Framwrok control the Power saving mechanism
isAndroidPsEn=1
#disable LDPC in STA mode if the AP is TXBF capable
gDisableLDPCWithTxbfAP=1
#Enable thermal mitigation
gThermalMitigationEnable=1
#List of Country codes for which 11ac needs to be disabled
#Each country code must be delimited by comma(,)
gListOfNon11acCountryCode=RU,UA,ZA
#Maxium Channel time in msec
gMaxMediumTime = 6000
# 802.11K support
gRrmEnable=1
gRrmOperChanMax=8
gRrmNonOperChanMax=8
gRrmRandIntvl=100
# If set to 1, generate the p2p device address from primary mac address
# with the locally administered bit set
isP2pDeviceAddrAdministrated=1
#Enable Telescopic Beacon wakeup
gEnableDynamicDTIM=0
gIgnoreDtim=0
gTelescopicBeaconWakeupEn=1
telescopicBeaconTransListenInterval=2
telescopicBeaconTransListenIntervalNumIdleBcns=10
telescopicBeaconMaxListenInterval=3
telescopicBeaconMaxListenIntervalNumIdleBcns=15
END
# Note: Configuration parser would not read anything past the END marker
xinfernal said:
Wifi range is terrible and keeps disconnecting me, what's the best way to edit these settings?
Code:
# This file allows user to override the factory
# defaults for the WLAN Driver
# Enable IMPS or not
gEnableImps=1
# Enable/Disable Idle Scan
gEnableIdleScan=0
# Increase sleep duration (seconds) during IMPS
# 0 implies no periodic wake up from IMPS. Periodic wakeup is
# unnecessary if Idle Scan is disabled.
gImpsModSleepTime=0
# Enable BMPS or not
gEnableBmps=0
# Enable suspend or not
# 1: Enable standby, 2: Enable Deep sleep, 3: Enable Mcast/Bcast Filter
gEnableSuspend=3
# Phy Mode (auto, b, g, n, etc)
# Valid values are 0-9, with 0 = Auto, 4 = 11n, 9 = 11ac
gDot11Mode=0
# Handoff Enable(1) Disable(0)
gEnableHandoff=0
# CSR Roaming Enable(1) Disable(0)
gRoamingTime=0
# Assigned MAC Addresses - This will be used until NV items are in place
# Each byte of MAC address is represented in Hex format as XX
Intf0MacAddress=000AF58989FF
Intf1MacAddress=000AF58989FE
Intf2MacAddress=000AF58989FD
Intf3MacAddress=000AF58989FC
# UAPSD service interval for VO,VI, BE, BK traffic
InfraUapsdVoSrvIntv=0
InfraUapsdViSrvIntv=0
InfraUapsdBeSrvIntv=0
InfraUapsdBkSrvIntv=0
# Make 1x1 the default antenna configuration
gNumRxAnt=1
# Beacon filtering frequency (unit in beacon intervals)
gNthBeaconFilter=50
# Enable WAPI or not
# WAPIIsEnabled=0
# Flags to filter Mcast abd Bcast RX packets.
# Value 0: No filtering, 1: Filter all Multicast.
# 2: Filter all Broadcast. 3: Filter all Mcast abd Bcast
McastBcastFilter=3
#Flag to enable HostARPOffload feature or not
hostArpOffload=1
#SoftAP Related Parameters
# AP MAc addr
gAPMacAddr=000AF589dcab
# 802.11n Protection flag
gEnableApProt=1
#Enable OBSS protection
gEnableApOBSSProt=1
#Enable TrafficMonitor
gEnableTrafficMonitor=1
#Set TracfficIdleTimeout
gTrafficIdleTimeout=3000
#Enable/Disable UAPSD for SoftAP
gEnableApUapsd=0
# Fixed Rate
gFixedRate=0
# Maximum Tx power
# gTxPowerCap=100
# Fragmentation Threshold
# gFragmentationThreshold=2346
# RTS threshold
RTSThreshold=2347
# Intra-BSS forward
gDisableIntraBssFwd=0
# WMM Enable/Disable
WmmIsEnabled=0
# 802.11d support
g11dSupportEnabled=1
# 802.11h support
g11hSupportEnabled=1
# CCX Support and fast transition
CcxEnabled=0
FastTransitionEnabled=1
ImplicitQosIsEnabled=1
gNeighborScanTimerPeriod=200
gNeighborLookupThreshold=76
gNeighborReassocThreshold=81
gNeighborScanChannelMinTime=20
gNeighborScanChannelMaxTime=30
gMaxNeighborReqTries=3
# Legacy (non-CCX, non-802.11r) Fast Roaming Support
# To enable, set FastRoamEnabled=1
# To disable, set FastRoamEnabled=0
FastRoamEnabled=1
#Check if the AP to which we are roaming is better than current AP in terms of RSSI.
#Checking is disabled if set to Zero.Otherwise it will use this value as to how better
#the RSSI of the new/roamable AP should be for roaming
RoamRssiDiff=3
# If the RSSI of any available candidate is better than currently associated
# AP by at least gImmediateRoamRssiDiff, then being to roam immediately (without
# registering for reassoc threshold).
# NOTE: Value of 0 means that we would register for reassoc threshold.
gImmediateRoamRssiDiff=10
# To enable, set gRoamIntraBand=1 (Roaming within band)
# To disable, set gRoamIntraBand=0 (Roaming across band)
gRoamIntraBand=0
# SAP Country code
# Default Country Code is 2 bytes, 3rd byte is optional indoor or out door.
# Example
# US Indoor, USI
# Korea Outdoor, KRO
# Japan without optional byte, JP
# France without optional byte, FR
#gAPCntryCode=USI
#Short Guard Interval Enable/disable
gShortGI20Mhz=1
gShortGI40Mhz=1
#Auto Shutdown Value in seconds. A value of 0 means Auto shutoff is disabled
gAPAutoShutOff=0
# SAP auto channel selection configuration
# 0 = disable auto channel selection
# 1 = enable auto channel selection, channel provided by supplicant will be ignored
gApAutoChannelSelection=1
# Listen Energy Detect Mode Configuration
# Valid values 0-128
# 128 means disable Energy Detect feature
# 0-9 are threshold code and 7 is recommended value from system if feature is to be enabled.
# 10-128 are reserved.
# The EDET threshold mapping is as follows in 3dB step:
# 0 = -60 dBm
# 1 = -63 dBm
# 2 = -66 dBm
# ...
# 7 = -81 dBm
# 8 = -84 dBm
# 9 = -87 dBm
# Note: Any of these settings are valid. Setting 0 would yield the highest power saving (in a noisy environment) at the cost of more range. The range impact is approximately #calculated as:
#
# Range Loss (dB) = EDET threshold level (dBm) + 127 dBm.
#
gEnablePhyAgcListenMode=128
#Preferred channel to start BT AMP AP mode (0 means, any channel)
BtAmpPreferredChannel=0
#Preferred band (both or 2.4 only or 5 only)
BandCapability=0
#Beacon Early Termination (1 = enable the BET feature, 0 = disable)
enableBeaconEarlyTermination=0
beaconEarlyTerminationWakeInterval=3
#Bluetooth Alternate Mac Phy (1 = enable the BT AMP feature, 0 = disable)
gEnableBtAmp=0
#SOFTAP Channel Range selection
gAPChannelSelectStartChannel=1
gAPChannelSelectEndChannel=11
#SOFTAP Channel Range selection Operating band
# 0:2.4GHZ 1: LOW-5GHZ 2:MID-5GHZ 3:HIGH-5GHZ 4: 4.9HZ BAND
gAPChannelSelectOperatingBand=0
#Channel Bonding
gChannelBondingMode5GHz=1
#Enable Keep alive with non-zero period value
#gStaKeepAlivePeriod = 30
#AP LINK MONITOR TIMEOUT is used for both SAP and GO mode.
#It is used to change the frequency of keep alive packets in the AP Link Monitor period which is by
#default 20s. Currently the keep alive packets are sent as an interval of 3s but after this change
#the keep alive packet frequency can be changed.
#gApLinkMonitorPeriod = 3
#If set will start with active scan after driver load, otherwise will start with
#passive scan to find out the domain
gEnableBypass11d=1
#If set to 0, will not scan DFS channels
gEnableDFSChnlScan=1
gVhtChannelWidth=2
gEnableLogp=1
# Enable Automatic Tx Power control
gEnableAutomaticTxPowerControl=1
# 0 for OLPC 1 for CLPC and SCPC
gEnableCloseLoop=1
#Data Inactivity Timeout when in powersave (in ms)
gDataInactivityTimeout=200
# VHT Tx/Rx MCS values
# Valid values are 0,1,2. If commented out, the default value is 0.
# 0=MCS0-7, 1=MCS0-8, 2=MCS0-9
gVhtRxMCS=2
gVhtTxMCS=2
# Enable CRDA regulatory support by settings default country code
#gCrdaDefaultCountryCode=TW
# Scan Timing Parameters
# gPassiveMaxChannelTime=110
# gPassiveMinChannelTime=60
# gActiveMaxChannelTime=40
# gActiveMinChannelTime=20
#If set to 0, MCC is not allowed.
gEnableMCCMode=1
# 1=enable STBC; 0=disable STBC
gEnableRXSTBC=1
# Enable Active mode offload
gEnableActiveModeOffload=1
#Enable Scan Results Aging based on timer
#Timer value is in seconds
#If Set to 0 it will not enable the feature
gScanAgingTime=0
#Enable Power saving mechanism Based on Android Framework
#If set to 0 Driver internally control the Power saving mechanism
#If set to 1 Android Framwrok control the Power saving mechanism
isAndroidPsEn=1
#disable LDPC in STA mode if the AP is TXBF capable
gDisableLDPCWithTxbfAP=1
#Enable thermal mitigation
gThermalMitigationEnable=1
#List of Country codes for which 11ac needs to be disabled
#Each country code must be delimited by comma(,)
gListOfNon11acCountryCode=RU,UA,ZA
#Maxium Channel time in msec
gMaxMediumTime = 6000
# 802.11K support
gRrmEnable=1
gRrmOperChanMax=8
gRrmNonOperChanMax=8
gRrmRandIntvl=100
# If set to 1, generate the p2p device address from primary mac address
# with the locally administered bit set
isP2pDeviceAddrAdministrated=1
#Enable Telescopic Beacon wakeup
gEnableDynamicDTIM=0
gIgnoreDtim=0
gTelescopicBeaconWakeupEn=1
telescopicBeaconTransListenInterval=2
telescopicBeaconTransListenIntervalNumIdleBcns=10
telescopicBeaconMaxListenInterval=3
telescopicBeaconMaxListenIntervalNumIdleBcns=15
END
# Note: Configuration parser would not read anything past the END marker
Click to expand...
Click to collapse
having the same issue. fresh install android O. did you ever find any info about this?
ElwOOd_CbGp said:
having the same issue. fresh install android O. did you ever find any info about this?
Click to expand...
Click to collapse
I can't remember if there was a solution but overall the Xperia SP wasn't good enough for my needs so I replaced it within the year.
Hey everyone,
I recently installed Cm12.1 on my z3c and I can't get a gps lock ever. When using the app called gps status, I'm only getting an average of 4/20 satellite locks. Could someone be so kind and extract the /etc/gps.conf from your stock rom for me? The latest the better. Thank you!
i couldnt upload on phone please copy below and save as conf file
#Uncommenting these urls would only enable
#the power up auto injection and force injection(test case).
XTRA_SERVER_1=http://xtrapath1.izatcloud.net/xtra3grc.bin
XTRA_SERVER_2=http://xtrapath2.izatcloud.net/xtra3grc.bin
XTRA_SERVER_3=http://xtrapath3.izatcloud.net/xtra3grc.bin
#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
#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
# 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 2.0
SUPL_VER=0x20000
# 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=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.sonyericsson.com
SUPL_PORT=7275
# 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=0
##################################################
# Select Positioning Protocol on A-GLONASS system
##################################################
# 0x1: RRC CPlane
# 0x2: RRLP UPlane
# 0x4: LLP Uplane
A_GLONASS_POS_PROTOCOL_SELECT = 0x2
###########################################
# Enable/Disable reading H-SLP address and
# certificates from the SIM card
###########################################
# 0: Disable (Default)
# 1: Enable
ENABLE_READ_FROM_SIM = 0
Thank you!
Code:
/*
* Your warranty is... still valid?
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this Kernel
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*
*/
Hello guys!
On this guide, I'll guide you on how to fix the GPS of your OP3/T. Technically this should work on any device as some of the techniques used are just universal for all devices, but some of the stuff shown is only applicable to the OP3/T and therefore the guide will be focused on this 2 devices.
Both the OP3/T are known for not having the greatest GPS on the market, although, that doesn't mean it shouldn't work. It's still more than capable (If working fine) to be used on Google Maps, Waze and some Fit apps like Strava, RunKepper etc
First of all, let's narrow down the problem. A normal working GPS should be able to get a full 3D Fix in about 30 seconds outside on a clear sky. If you are testing this inside your house or office the times may variate.
This is a what a properly working GPS Looks like.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
And this is a what a not working GPS Looks like.
I recommend GPS Test for all the test we're going to do.
It will give you pretty much all the information you need to know.
GPS Test
[*]If your GPS takes a while to get a Fix/Or it's quite inaccurate then I recommend trying Method 1 & 2
[*]If your GPS can see the GPS Satellites but won't connect to any of them I recommend trying Method 3
[*]If you are having problems with GPS just while using 4G/LTE, I recommend Method 2 or Click HERE
[*]If your phone is not detecting your GPS Sensor I recommend Method 3 & 4
[*]Although I'd suggest trying all the Method until you can get your GPS properly working
Method 1: (Non-Root Method)
Let's get the obvious things over.
Make sure that Location Services are enable
Turn OFF and ON location
Switch from all 3 different modes. Devices Only, Battery Saving and High Accuracy
Reboot the Phone
Make sure Location History is enabled. Not sure why and how, but this seems to help with getting faster and better location.
Most likely this won't fix it, but it was worth to try.
Now let's try other methods.
Download the following app.
GPS Status
Open the app and go to the Sensor Diagnostic.
Press the GPS sensor and do Reset and then Download GPS Assistance.
Calibrate as well your Magnetic Field Sensor.
Test GPS.
Method 2: (Root Method)
I recommend performing a full backup before attending any of the following steps.
Once again let's get the obvious thing over.
Wipe both Cache and Dalvik
Try changing ROMs or Update your current ROM
Try updating or reflashing the lastest or your current Firmware/Modem
Try changing Kernel
Doing this we eliminate most of the possible problem related to your apps or configuration that you're currently using.
You might turn off or blocked some Alarm/Service/Wakelock that left you completely with GPS or Location service at all.
Now we are going to tweak our gps.conf file!
This should fix Slow Fixing or Not Accurate GPS.
I found this 2014 XDA Article about Faster GPS.
Open the link found on the Article or just click HERE
Search for your country/region and download the zip file there
Transfer it over your devices
Now we have a couple options to do.
You can replace your whole gps.conf for the one that you've downloaded or modify your current one.
On both case:
Open your fav File Explorer
Go to /system/etc/
Search for the gps.conf and back it up to a safe location
From here you can unzip the file you did download previously and copy and paste on /system/etc/ make sure that it's set to perms 644 or rw-rw-r--
There are a couple apps on the Google Place that does this as well.
The best ones in my option:
Faster GPS | TopNTP
What I like to do is take the default gps.conf and modify it with the additional setting found in both the apps and the zip file from above.
I like to this file and apps just substitute the whole gps.conf file and there is some additional information found in the default gps.conf that's not found on the replaced files. These settings are particular to the device, so it'd be interesting to keep it. Anyways, this what you have to do:
Do a backup of your current gps.conf
We are going to search for the new active NTP service for your region.
Go to http://www.pool.ntp.org/en/
Lock for "Active Servers". Click your region
For example, If you click Europe it will show: 0.europe.pool.ntp.org; 1.europe.pool.ntp.org; 2.europe.pool.ntp.org; 3.europe.pool.ntp.org
Then the servers for your country at the list down below. Example: Spain — 2.es.pool.ntp.org; 1.europe.pool.ntp.org; 2.europe.pool.ntp.org
Write down all this information somewhere, take as well the NTP information from the zip files you've downloaded previously.
We should have something like this.
NTP_SERVER=hora.roa.es
NTP_SERVER=hora.oxixares.com
NTP_SERVER=europe.pool.ntp.org
NTP_SERVER=0.europe.pool.ntp.org
NTP_SERVER=1.europe.pool.ntp.org
NTP_SERVER=2.europe.pool.ntp.org
NTP_SERVER=3.europe.pool.ntp.org
NTP_SERVER=es.pool.ntp.org
NTP_SERVER=0.es.pool.ntp.org
NTP_SERVER=2.es.pool.ntp.org
Now we are going to modify our gps.conf file
Open it and add or uncomment (remove "#" before the line) the following lines of code.
Code:
NTP_SERVER=0.COUNTRY.pool.ntp.org
NTP_SERVER=1.COUNTRY.pool.ntp.org
NTP_SERVER=2.COUNTRY.pool.ntp.org
NTP_SERVER=3.COUNTRY.pool.ntp.org
NTP_SERVER=0.REGION.pool.ntp.org
NTP_SERVER=1.REGION.pool.ntp.org
NTP_SERVER=2.REGION.pool.ntp.org
NTP_SERVER=3.REGION.pool.ntp.org
NTP_SERVER=COUNTRY.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
# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
DEBUG_LEVEL =0
# 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=5000 //This can be reduced If you are not quite getting all servers (Even by 0)
# Report supl ref location as position, 1=enable, 0=disable
REPORT_POSITION_USE_SUPL_REFLOC=1
# Wiper (wifi positioning), 1=enable, 0=disable
ENABLE_WIPER=1
################################
##### AGPS server settings #####
################################
# FOR SUPL SUPPORT, set the following
SUPL_HOST=supl.google.com
SUPL_PORT=7276
SUPL_NO_SECURE_PORT=3425
SUPL_SECURE_PORT=7275
SUPL_TLS_HOST=FQDN
SUPL_TLS_CERT=/etc/SuplRootCert
# FOR C2K PDE SUPPORT, set the following
C2K_HOST=c2k.pde.com
C2K_PORT=1234
CURRENT_CARRIER=common
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_SSL_ENABLE=FALSE
####################################
# 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 = 3 //There's controversy where this setting should be set to 0,1,2 or 3, I personally get best result with 3 but 1 should
work as well.
Make sure the file was the right perms 644 or rw-rw-r---
Reboot your phone
This is how my gps.conf looks like. Use it as a comparison, but I don't recommend just copying and pasting into your own file unless you live in Spain.
Code:
#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
#ifdef VENDOR_EDIT
# [email protected] add gps xtra server for speed up gps cold start
XTRA_SERVER_1=http://xtrapath1.izatcloud.net/xtra3grc.bin
XTRA_SERVER_2=http://xtrapath2.izatcloud.net/xtra3grc.bin
XTRA_SERVER_3=http://xtrapath3.izatcloud.net/xtra3grc.bin
#endif
#ifdef VENDOR_EDIT
# [email protected],XTRA download config for debug
XTRA_TEST_ENABLED = 1
XTRA_THROTTLE_ENABLED = 0
#endif
#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=hora.roa.es
NTP_SERVER=hora.oxixares.com
NTP_SERVER=europe.pool.ntp.org
NTP_SERVER=0.europe.pool.ntp.org
NTP_SERVER=1.europe.pool.ntp.org
NTP_SERVER=2.europe.pool.ntp.org
NTP_SERVER=3.europe.pool.ntp.org
NTP_SERVER=es.pool.ntp.org
NTP_SERVER=0.es.pool.ntp.org
NTP_SERVER=2.es.pool.ntp.org
#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 = 0
# 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=0
#Choose PDN for Emergency SUPL
#1 - Use emergency PDN
#0 - Use regular SUPL PDN for Emergency SUPL
USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL=0
#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=0x37
# Accuracy threshold for intermediate positions
# less accurate positions are ignored, 0 for passing all positions
# ACCURACY_THRES=0
# Report supl ref location as position, 1=enable, 0=disable
REPORT_POSITION_USE_SUPL_REFLOC=1
# Wiper (wifi positioning), 1=enable, 0=disable
ENABLE_WIPER=1
################################
##### AGPS server settings #####
################################
# FOR SUPL SUPPORT, set the following
SUPL_HOST=supl.google.com
SUPL_PORT=7276
SUPL_NO_SECURE_PORT=3425
SUPL_SECURE_PORT=7275
SUPL_TLS_HOST=FQDN
SUPL_TLS_CERT=/etc/SuplRootCert
# FOR C2K PDE SUPPORT, set the following
C2K_HOST=c2k.pde.com
C2K_PORT=1234
CURRENT_CARRIER=common
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_SSL_ENABLE=FALSE
# TRUE for "User Plane", FALSE for "Control Plane"
DEFAULT_USER_PLANE=TRUE
# 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 = 3
################################
# 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
#ifndef [email protected] enable all bit mask for GLONASS
#A_GLONASS_POS_PROTOCOL_SELECT = 0
#else
A_GLONASS_POS_PROTOCOL_SELECT = 15
#endif
##################################################
# Select technology for LPPe Control Plane
##################################################
# 0x1: DBH for LPPe CP
# 0x2: WLAN AP Measurements for LPPe CP
LPPE_CP_TECHNOLOGY = 0
##################################################
# Select technology for LPPe User Plane
##################################################
# 0x1: DBH for LPPe UP
# 0x2: WLAN AP Measurements for 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
# AP Coarse Timestamp Uncertainty
##################################################
# default : 10
# or as per clock uncertainty of product
AP_TIMESTAMP_UNCERTAINTY = 10
#####################################
# GNSS PPS settings
#####################################
#AP DR engine availability status
# 0 : NO AP DR (default)
# 1 : AP DR enabled
#EXTERNAL_DR_ENABLED = 0
#####################################
#DR_SYNC Pulse Availability
#####################################
# 0 : DR_SYNC pulse not available (default)
# 1 : DR_SYNC pulse available
DR_SYNC_ENABLED = 0
#####################################
#PPS Device name
#####################################
PPS_DEVICENAME = /dev/pps0
#####################################
#AP Clock Accuracy
#####################################
AP_CLOCK_PPM = 100
#####################################
#MAX ms difference to detect missing pulse
#####################################
MISSING_PULSE_TIME_DELTA = 900
#####################################
#Propagation time uncertainty
#####################################
PROPAGATION_TIME_UNCERTAINTY = 1
Alright, after this I'd recommend Downloading again AGPS Data (Assistance GPS), you can use GPS Status again or any other app that does this.
They are called AGPS Injectors, you can use them for getting it faster GPS fix by the AGPS from time to time, but If your GPS is not working this most likely won't do anything.
Method 3: (Using Un-Brick Tool)
If nothing of the above have worked for you, don't worry there is still hope.
This is the method that actually Fixed my GPS which was not getting a fix. It would find the Satellites (See them) but could connect to them.
As I said, we are going to use the MEGA Unbrick Tool. Credits to @Naman Bhalla
Backup everything and transfer it to your PC!!!
Go to the following link
Download the Method 2 and follow the instructions there
But wait, now there is no need to backup everything as Method 2 does no longer erase your Internal Storage.
Yes and No, it's true that now deleting a line will make it so it doesn't delete your Internal Storage, but we DON'T want this.
I have found that If we don't delete the internal it won't fix anything. If you want to try you can do it without the Data wipe, but If that doesn't work you have lost a lot of time...
Once you have performed the FULL Method 2
Boot to System (OOS 3.1.2)
There try downloading the apps mentioned before and test whether your GPS is working or not
If it's working you can install TWRP and start getting everything restored
I recommend doing a CLEAN install of the ROM and then install all your apps, just in case something was wrong with your previous System partition
Method 4: (Hardware Issue)
If anything has worked so far a possible case is that it's a Hardware and not software issue.
That means as well, that when open GPS Test or any GPS app the GPS Sensor WILL NOT BE FOUND.
If it does not the case and the GPS is Found but it cannot get a FIX (But sees the different GPS Satellites) or straight doesn't see any GPS Satellites.
*DISCLAIMER* Opening your phone avoids you Warranty, so If your phone is under warranty I'd recommend sending it back to One Plus
What can be done?
Well... If your phone is still under warranty I'd recommend opening an RMA Ticket and sending your phone for repair.
If your phone is not under warranty, and your GPS Sensor is not found at all, most likely your GPS is just broken, you can attempt the following method, but instead of putting tin foil you should reconnect the pins or buy a new replacement and installing it.
If your phone still sees GPS Satellites you can do the following guide.
This guide was designed for the S4 but it will work on the OP3/T (and any other phones)
http://www.instructables.com/id/Galaxy-S4-GPS-repair/
Here is a video from JerryRigEverything on the disablement of the OP3/T
https://www.youtube.com/watch?v=Hh_XgrcQ9oo
With all this, you should be able to Fix your GPS no matter what had happened to it.
I'll update adding additional pictures.
Reserved.
Good work for this topic, although I don't think this solves anything. I only have a decent GPS when I set my connection to 2g/3g. When 4g is enabled strange things occurs.
Tried that not sure if it helps, although some claim that it helped.
Darkje said:
Good work for this topic, although I don't think this solves anything. I only have a decent GPS when I set my connection to 2g/3g. When 4g is enabled strange things occurs.
Click to expand...
Click to collapse
That's most likely due to this part of your gps.confg
Code:
####################################
# 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 = 3 //There's controversy where this setting should be set to 0,1,2 or 3, I personally get best result with 3 but 1 should
work as well.
The Default is 0 or RRLP you should use LLP either User_Plane or Both enabled.
I can send you the article about with that happen If you are interested.
Asiier said:
That's most likely due to this part of your gps.confg
Code:
####################################
# 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 = 3 //There's controversy where this setting should be set to 0,1,2 or 3, I personally get best result with 3 but 1 should
work as well.
The Default is 0 or RRLP you should use LLP either User_Plane or Both enabled.
I can send you the article about with that happen If you are interested.
Click to expand...
Click to collapse
Yes please!
Darkje said:
Yes please!
Click to expand...
Click to collapse
The article I was refering to -> Expert Advice: Positioning Protocol for Next-Gen Cell Phones
Another article about the topic -> LTE, Positioning, and the Implications for GNSS Over-the-Air Testing
And a full written paper about the matter -> LTE Location Based Services Technology Introduction
Asiier said:
That's most likely due to this part of your gps.confg
Code:
####################################
# 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 = 3 //There's controversy where this setting should be set to 0,1,2 or 3, I personally get best result with 3 but 1 should
work as well.
The Default is 0 or RRLP you should use LLP either User_Plane or Both enabled.
I can send you the article about with that happen If you are interested.
Click to expand...
Click to collapse
It is set to option 2. So I quess I should try option 3 right
Darkje said:
It is set to option 2. So I quess I should try option 3 right
Click to expand...
Click to collapse
Probably, from what I've read Control_Plane doesn't work really good
Hi asiier, in fact I did try most of the method before.
1: fully wipe my phone with unbrick tool.
2: using GPS status box etc.
3: change ROM, firmware etc.
But the above method doesn't solve my GPS issued. The weird part was whenever I changed a new Rom. Gps locked or detected very fast.. After sometimes, the problem came back.
Also for my temporary fixed was to reboot the device. This method mostly worked for me. But sometimes when I reset my GPS data, I can't detect the satellite. Required reboot few times.
This gps issued hunted me for months now. It frustrated and disappointed with oneplus. I'm a waze user and using daily. :crying:
Flasher8 said:
Hi asiier, in fact I did try most of the method before.
1: fully wipe my phone with unbrick tool.
2: using GPS status box etc.
3: change ROM, firmware etc.
But the above method doesn't solve my GPS issued. The weird part was whenever I changed a new Rom. Gps locked or detected very fast.. After sometimes, the problem came back.
Also for my temporary fixed was to reboot the device. This method mostly worked for me. But sometimes when I reset my GPS data, I can't detect the satellite. Required reboot few times.
This gps issued hunted me for months now. It frustrated and disappointed with oneplus. I'm a waze user and using daily. :crying:
Click to expand...
Click to collapse
Flasher8 said:
Click to expand...
Click to collapse
Then something is wrong with the settings you apply to your ROM and not your GPS.
Do you use Amplify, block any Wakelocks, alarms? Use some weird apps that could cause some problems?
And about the reset. I think it's a bug, because it happens to me as well, If I reset (Cold Start) my AGPS Data sometimes won't find any GPS Satellite unless I reboot.
So just don't reset it, just Download new AGPS data, it will replace the previous one, so there is no need in actually resetting.
Asiier said:
Then something is wrong with the settings you apply to your ROM and not your GPS.
Do you use Amplify, block any Wakelocks, alarms? Use some weird apps that could cause some problems?
And about the reset. I think it's a bug, because it happens to me as well, If I reset (Cold Start) my AGPS Data sometimes won't find any GPS Satellite unless I reboot.
So just don't reset it, just Download new AGPS data, it will replace the previous one, so there is no need in actually resetting.
Click to expand...
Click to collapse
No amplify, block and wakelocks etc.. Just normal usage. Even Oos and ob room having same issued. Im thinking hardware problem but mostly reboot could solve temporary. Damn op.
Wtf... I'm dam frustrated when need to use gps
Flasher8 said:
No amplify, block and wakelocks etc.. Just normal usage. Even Oos and ob room having same issued. Im thinking hardware problem but mostly reboot could solve temporary. Damn op.
Click to expand...
Click to collapse
Flasher8 said:
Wtf... I'm dam frustrated when need to use gps
Click to expand...
Click to collapse
If your GPS is getting signal from time to time and even getting a lock I won't say it's a hardware issue
If you give me more information maybe we can find out. Try to replicate it and record the screen or something
Asiier said:
That's most likely due to this part of your gps.confg
Code:
####################################
# 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 = 3 //There's controversy where this setting should be set to 0,1,2 or 3, I personally get best result with 3 but 1 should
work as well.
The Default is 0 or RRLP you should use LLP either User_Plane or Both enabled.
I can send you the article about with that happen If you are interested.
Click to expand...
Click to collapse
Si only optimizes the fixtime. It has ZERO influence on GPS performance... You do realize you don't even need cell signal to use the GPS, right? Any modification of this file can only enhance the NON GPS localisation methods.
Looks like you should read the articles you posted
Nobody07 said:
Si only optimizes the fixtime. It has ZERO influence on GPS performance... You do realize you don't even need cell signal to use the GPS, right? Any modification of this file can only enhance the NON GPS localisation methods.
Looks like you should read the articles you posted
Click to expand...
Click to collapse
Is true that the GPS is independent of Cell Signal, but currently since 3.5G If a cell connection is found the GPS will take advantage of that and get the Satellites fixed faster as it will "focus" on those near to Cell tower connected.
Nobody07 said:
Si only optimizes the fixtime. It has ZERO influence on GPS performance... You do realize you don't even need cell signal to use the GPS, right? Any modification of this file can only enhance the NON GPS localisation methods.
Looks like you should read the articles you posted
Click to expand...
Click to collapse
Then please explain me why I have a perfect GPS connection on 2G/3G and a bad one on 4G?
I can get a lock but problem is when I try recording path I get lots of drift and didn't record some of my route
Darkje said:
Then please explain me why I have a perfect GPS connection on 2G/3G and a bad one on 4G?
Click to expand...
Click to collapse
Bug or hardware issue with the SoC. May i ask how reception is with mobile connection completely shut off? Like in plane mode for instance.