I have used this code GitHub - kconger/android-serial-gps-driver: Android Serial GPS Driver and I get GPS working. I have another issue that I can't get AGPS working. I'm using this gps.conf. Could anyone give me directions? For supl.google.com is certificate necessary and how get one?
NTP_SERVER=br.pool.ntp.org
NTP_SERVER=0.br.pool.ntp.org
NTP_SERVER=1.br.pool.ntp.org
NTP_SERVER=2.br.pool.ntp.org
NTP_SERVER=3.br.pool.ntp.org
NTP_SERVER=south-america.pool.ntp.org
NTP_SERVER=0.south-america.pool.ntp.org
NTP_SERVER=1.south-america.pool.ntp.org
NTP_SERVER=2.south-america.pool.ntp.org
NTP_SERVER=3.south-america.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
# AGPS Daemon Call
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_USER_PLANE=TRUE
DEFAULT_SSL_ENABLE=FALSE
DEBUG_LEVEL=0
INTERMEDIATE_POS=1
ACCURACY_THRES=5000
#Active GOOGLE
### AGPS server settings GOOGLE ###
SUPL_HOST=supl.google.com
SUPL_PORT=7276
SUPL_SECURE_PORT=7278
SUPL_NO_SECURE_PORT=3425
############################
### AGPS alternative setting NOKIA ###
# SUPL_HOST=supl.nokia.com
# SUPL_PORT=7275
################################
### AGPS alternative setting SONY ###
# SUPL_HOST=supl.sonyericsson.com
# SUPL_PORT=7275
################################
### AGPS alternative setting T-MOBILE ###
# SUPL_HOST=10.176.29.225
# SUPL_PORT=7275
# SUPL_TLS_HOST=lbs.geo.t-mobile.com
##################################
#WiFi Position 1=”On”, 0=”Off”
ENABLE_WIPER=1
CURRENT_CARRIER=common
REPORT_POSITION_USE_SUPL_REFLOC=1
Hello Leonardo,
The GPS conf looks ok. Are you enabling the use of wireless networks and gps satellites?, do you have the logcat or how are you defininf that the a-gps is not working?
The GPS fix takes too long and I can see in logcat this information:
07-07 20:48:29.873 1073 1086 D GpsLocationProvider: Reset GPS properties, previous size = 0
07-07 20:48:29.874 1073 1086 D GpsLocationProvider: GpsParamsResource: SUPL_HOST=supl.google.com
07-07 20:48:29.874 1073 1086 D GpsLocationProvider: GpsParamsResource: SUPL_PORT=7275
07-07 20:48:29.874 1073 1086 D GpsLocationProvider: GpsParamsResource: NTP_SERVER=north-america.pool.ntp.org
07-07 20:48:29.875 1073 1086 D GpsLocationProvider: GpsParamsResource: SUPL_VER=0x20000
07-07 20:48:29.875 1073 1086 D GpsLocationProvider: GpsParamsResource: SUPL_MODE=1
07-07 20:48:29.888 1073 1086 D GpsLocationProvider: GPS properties reloaded, size = 19
07-07 20:48:29.888 1073 1086 E GpsLocationProvider: no AGPS interface in set_agps_server
one.
07-07 20:48:29.924 1073 1073 W LocationManagerService: no network location provider found