From 7d3f1b51209cc618c0500231a2c2c7dd03438980 Mon Sep 17 00:00:00 2001 From: Max Weffers Date: Wed, 27 May 2020 14:27:40 +0200 Subject: [PATCH] sdm660-common: gps: add changes from clover for wifi only gps Change-Id: I03caa72e72a59cbbd33c1ceae64921de0c1d4bdc --- gps/etc/flp.conf | 34 ++++++++++++++++++++++++++++++++++ gps/etc/gps.conf | 24 +++++++++++++++++++----- 2 files changed, 53 insertions(+), 5 deletions(-) diff --git a/gps/etc/flp.conf b/gps/etc/flp.conf index 65d54d38..d28e20d4 100644 --- a/gps/etc/flp.conf +++ b/gps/etc/flp.conf @@ -36,6 +36,14 @@ OUTDOOR_TRIP_BATCH_SIZE=600 # defaults to 20 seconds by the modem. # BATCH_SESSION_TIMEOUT=20000 +################################### +# FLP CAPABILITIES BIT MASK +################################### +# GEOFENCE = 0x01 +# BATCHING = 0x02 +# default = GEOFENCE | BATCHING +CAPABILITIES=0x03 + ################################### # FLP BATCHING ACCURACY ################################### @@ -49,6 +57,32 @@ OUTDOOR_TRIP_BATCH_SIZE=600 # High accuracy = 2 ACCURACY=1 +################################### +# FLP GEOFENCE RESPONSIVENESS +################################### +# If set to one of the defined values below, +# it will override the responsiveness for +# FLP geofence, which implements the fused +# location API. If not set to a value defined +# below, which is default, it will not +# override the responsivness. +# FLP_GEOFENCE_RESPONSIVENESS_OVERRIDE Values: +# 1: LOW responsiveness +# 2: MEDIUM responsiveness +# 3: HIGH responsiveness +FLP_GEOFENCE_RESPONSIVENESS_OVERRIDE = 0 + +#################################### +# By default APPS must support LB only if modem support +# LB 1.5 and above. This parameter adds an exception +# for targets where modem only supports LB 1.0. +# This might be useful for primarily outdoor devices. +# 0: MUST NOT ALLOW LB IF MODEM ONLY SUPPORTS +# LB 1.0 +# 1: ALLOW LB IF MODEM ONLY SUPPORTS LB 1.0 +#################################### +ALLOW_LB_1_0 = 0 + #################################### # By default if network fixes are not sensor assisted # these fixes must be dropped. This parameter adds an exception diff --git a/gps/etc/gps.conf b/gps/etc/gps.conf index df658cc9..81104c58 100644 --- a/gps/etc/gps.conf +++ b/gps/etc/gps.conf @@ -1,3 +1,9 @@ +#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 + #Version check for XTRA #DISABLE = 0 #AUTO = 1 @@ -24,11 +30,18 @@ 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 +#SUPL_ES=0 #Choose PDN for Emergency SUPL #1 - Use emergency PDN @@ -47,8 +60,9 @@ SUPL_VER=0x10000 # MSB = 0x02 # MSA = 0x04 # ON_DEMAND_TIME = 0x10 -# default = ON_DEMAND_TIME | MSA | MSB | SCHEDULING -CAPABILITIES=0x17 +# 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 @@ -142,7 +156,7 @@ A_GLONASS_POS_PROTOCOL_SELECT = 0 # 0x2: WLAN AP Measurements for LPPe CP # 0x4: SRN AP measurement for CP # 0x8: Sensor Barometer Measurement LPPe CP -#LPPE_CP_TECHNOLOGY = 0 +LPPE_CP_TECHNOLOGY = 0 ################################################## # Select technology for LPPe User Plane @@ -151,7 +165,7 @@ A_GLONASS_POS_PROTOCOL_SELECT = 0 # 0x2: WLAN AP Measurements for LPPe UP # 0x4: SRN AP measurement for UP # 0x8: Sensor Barometer Measurement LPPe UP -#LPPE_UP_TECHNOLOGY = 0 +LPPE_UP_TECHNOLOGY = 0 ################################################## # AGPS_CONFIG_INJECT