Faild to request location via GNSS

Hello, 

I've tried to request the location via AGPS/PGPS via Location sample in SDK 1.8 but it seems that location is only working with the Cellular method. 

I've tried to re-provision the device again as it is described here https://docs.nrfcloud.com/Guides/GettingStarted/Devices/#securely-generating-credentials-on-the-nrf9160

The current modem version is 1.3.1
DKnrf9160,
SDK = 1.8,
Location sample ( west build -p -b nrf9160dk_nrf9160_ns -- -DOVERLAY_CONFIG=overlay-pgps.conf )

the output of the Location sample is

Connecting to LTE...
Connected to LTE
Waiting for current time
Requesting location with short GNSS timeout to trigger fallback to cellular...
[00:00:02.264,404] <inf> nrf_cloud_pgps: Checking P-GPS header: Schema version:1, type:10, num:1, count:42
[00:00:02.264,953] <inf> nrf_cloud_pgps:   size:2006, period (minutes):240, GPS day:15372, GPS time:57600
[00:00:02.265,502] <inf> nrf_cloud_pgps: Checking stored P-GPS data; count:42, period_min:240
[00:00:02.266,418] <inf> nrf_cloud_pgps: num blocks:42, size:2048, first_free:-1
[00:00:02.266,876] <inf> nrf_cloud_pgps: map:111111111111111111111111111111111111111111
[00:00:02.267,303] <inf> nrf_cloud_pgps: Checking if P-GPS data is expired...
[00:00:02.267,730] <inf> nrf_cloud_pgps: Looking for prediction for: GPS sec:1330013602, day:15393, time of day:58402, week:2199, day of week:0, time of week:58402, toe:3650
[00:00:02.268,524] <inf> nrf_cloud_pgps: First stored prediction: GPS sec:1328198400, day:15372, time of day:57600, week:2196, day of week:0, time of week:57600, toe:3600
[00:00:02.269,317] <inf> nrf_cloud_pgps: current offset into prediction set, sec:1815202
[00:00:02.269,775] <wrn> nrf_cloud_pgps: data expired!
[00:00:02.270,111] <wrn> nrf_cloud_pgps: Predictions expired. Requesting predictions...
[00:00:29.068,939] <wrn> location: Timeout occurred
[00:00:29.069,549] <wrn> location: Failed to acquire location using 'GNSS', trying with 'Cellular' next

Could you please tell me how I can get GNSS method working?

Thanks in advance!

Mustafa 

Related