This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Why is "No location data available" always printed when SUPL data is downloaded

Why is "No location data available" always printed when SUPL data is downloaded in gps sample app? This happens at any place. I guess this causes a long TTFF.

This is a log downloading SUPL data.

*** Booting Zephyr OS build v2.3.0-rc1-ncs1  ***
Staring GPS application
LTE Link Connecting ...
LTE Link Connected!
GPS Socket created
Getting GPS data...
New AGPS data requested, contacting SUPL server, flags 59
Established LTE link
ip adc2:4cc0::e01:300:1e00:1e00 (c04cc2ad) port 7276
Starting SUPL session
ULP encoding length: 38
Bytes sent: 38
Bytes received: 34
ULP ossDecode success, choice 3
SUPL server responded using version 2.0.4
SUPL response received
ULP encoding length: 57
Bytes sent: 57
Bytes received: 708
ULP ossDecode more input 4
Bytes received: 1416
ULP ossDecode more input 4
Bytes received: 2124
ULP ossDecode more input 4
Bytes received: 2832
ULP ossDecode more input 4
Bytes received: 2923
ULP ossDecode success, choice 5
Injected AGPS data, flags: 1, size: 16
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 2, size: 72
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
Injected AGPS data, flags: 3, size: 32
No integrity data available
Injected AGPS data, flags: 4, size: 8
Injected AGPS data, flags: 6, size: 144
No location data available
Injected AGPS data, flags: 7, size: 16
MCC location info injected, MCC: 440
	Lat: SOMEPLACE Lon: SOMEPLACE
	Unc semiminor: 127
	Unc semimajor: 127
	Confidence: 90
	Orientation: 0
SUPL POS received
read again
read again
Bytes received: 34
ULP ossDecode success, choice 6
SUPLEND:
	Mask: 0
	Status: 0
SUPL END received
SUPL session internal resources released
SUPL session finished
Done

I read these tickets.

devzone.nordicsemi.com/.../246484
https://devzone.nordicsemi.com/f/nordic-q-a/59034/agps_thingy91/240218#240218

The "No location data available" means just that: the SUPL server does not have any location data to provide you. Instead, the library will fall back on its own table.
Google's SUPL server is keeping a database over cell tower positions, but this database is not complete. So the "No location data available" is expected and happens all the time.
When that happens, the library will fall back to assuming you are at the geographical center of the country you are in. How much this helps depends on the size of your country, and where in the country you are.

The center of my country is way far from my place.

Isn't this bug in SUPL file?

Parents Reply Children
Related