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

nrf9160 DK HW0.9.0 Asset Tracker - GPS fail

Hi there,

I am trying the asset tracker example on nrf9160DK-HW 0.9.0.

While I have been able to get GPS fix within 20-30 seconds using the "GPS sample" example... I've never been able to get a GPS fix with the asset tracker example.

Apparently "GPS_EVT_OPERATION_BLOCKED" interrupts the GPS fix.

It seems like the firmware keeps blocking the GPS engine due to LTE-M re-connection to the network? Is that perhaps because PSM/eDRX isn't supported where I am located? How do I check whether or not LTE-M radio is able to sleep for long periods or not?

I've confirmed my device does get registered on the LTE-M network, and environment data (no GPS) does show up on nrfcloud.com (though I haven't figured the periodicity of the data push either).

CESQ: 41,2,11,1
%CESQ: 41,2,6,0
%CESQ: 41,2,11,1
%CESQ: 41,2,6,0
%CESQ: 41,2,11,1
%CESQ: 36,1,11,1
%CESQ: 36,1,6,0
[00:03:03.371,520] <inf> asset_tracker: Starting GPS
[00:03:03.377,166] <inf> gps_control: Enabling PSM
[00:03:03.389,770] <inf> gps_control: PSM enabled
[00:03:03.395,690] <dbg> nrf9160_gps.enable_gps: GPS mode is enabled
[00:03:03.406,707] <dbg> nrf9160_gps.start: GPS operational
[00:03:03.412,841] <inf> gps_control: GPS started successfully. Searching for satellites
[00:03:03.421,569] <inf> gps_control: to get position fix. This may take several minutes.
[00:03:03.430,328] <inf> gps_control: The device will attempt to get a fix for 360 seconds,
[00:03:03.439,361] <inf> gps_control: before the GPS is stopped. It's restarted every 30 seconds
[00:03:03.448,913] <inf> asset_tracker: GPS_EVT_SEARCH_STARTED
%CESQ: 31,1,6,0
[00:03:04.414,215] <dbg> nrf9160_gps.gps_thread: Waiting for time window to operate
[00:03:04.422,454] <inf> asset_tracker: GPS_EVT_OPERATION_BLOCKED
%CESQ: 36,1,6,0
%CESQ: 36,1,11,1
[00:03:25.360,931] <dbg> nrf9160_gps.gps_thread: GPS has time window to operate
[00:03:25.368,804] <inf> asset_tracker: GPS_EVT_OPERATION_UNBLOCKED
[00:03:25.375,854] <dbg> nrf9160_gps.gps_thread: A-GPS data update needed
[00:03:25.383,300] <inf> asset_tracker: GPS_EVT_AGPS_DATA_NEEDED
%CESQ: 36,1,6,0
[00:03:30.407,775] <dbg> nrf9160_gps.print_satellite_stats: Tracking: lat = 0 long= 0 pdop: 100 hdop: 100
[00:03:30.418,029] <dbg> nrf9160_gps.print_satellite_stats: Seconds since last fix 210
[00:03:30.426,544] <dbg> nrf9160_gps.print_satellite_stats: Tracking: 1 Using: 0 Unhealthy: 0
[00:03:40.928,436] <dbg> nrf9160_gps.print_satellite_stats: Tracking: lat = 0 long= 0 pdop: 100 hdop: 100
[00:03:40.938,659] <dbg> nrf9160_gps.print_satellite_stats: Seconds since last fix 220
[00:03:40.947,113] <dbg> nrf9160_gps.print_satellite_stats: Tracking: 1 Using: 0 Unhealthy: 0
[00:03:42.472,167] <dbg> nrf9160_gps.gps_thread: Waiting for time window to operate
[00:03:42.480,438] <inf> asset_tracker: GPS_EVT_OPERATION_BLOCKED
[00:03:42.766,235] <dbg> nrf9160_gps.gps_thread: GPS has time window to operate
[00:03:42.774,078] <inf> asset_tracker: GPS_EVT_OPERATION_UNBLOCKED
[00:03:48.873,016] <dbg> nrf9160_gps.gps_thread: Waiting for time window to operate
[00:03:48.881,347] <inf> asset_tracker: GPS_EVT_OPERATION_BLOCKED
[00:03:49.166,412] <dbg> nrf9160_gps.gps_thread: GPS has time window to operate
[00:03:49.174,377] <inf> asset_tracker: GPS_EVT_OPERATION_UNBLOCKED
[00:03:50.168,273] <dbg> nrf9160_gps.print_satellite_stats: Tracking: lat = 0 long= 0 pdop: 100 hdop: 100
[00:03:50.178,497] <dbg> nrf9160_gps.print_satellite_stats: Seconds since last fix 230
[00:03:50.187,103] <dbg> nrf9160_gps.print_satellite_stats: Tracking: 2 Using: 0 Unhealthy: 0
[00:04:00.408,020] <dbg> nrf9160_gps.print_satellite_stats: Tracking: lat = 0 long= 0 pdop: 100 hdop: 100
[00:04:00.418,273] <dbg> nrf9160_gps.print_satellite_stats: Seconds since last fix 240
[00:04:00.426,879] <dbg> nrf9160_gps.print_satellite_stats: Tracking: 2 Using: 0 Unhealthy: 0
[00:04:10.649,108] <dbg> nrf9160_gps.print_satellite_stats: Tracking: lat = 0 long= 0 pdop: 100 hdop: 100
[00:04:10.659,362] <dbg> nrf9160_gps.print_satellite_stats: Seconds since last fix 250
[00:04:10.667,938] <dbg> nrf9160_gps.print_satellite_stats: Tracking: 2 Using: 0 Unhealthy: 0
[00:04:20.888,732] <dbg> nrf9160_gps.print_satellite_stats: Tracking: lat = 0 long= 0 pdop: 100 hdop: 100
[00:04:20.898,986] <dbg> nrf9160_gps.print_satellite_stats: Seconds since last fix 260
[00:04:20.907,592] <dbg> nrf9160_gps.print_satellite_stats: Tracking: 2 Using: 0 Unhealthy: 0
%CESQ: 36,1,1,0
%CESQ: 36,1,7,1
[00:04:30.127,044] <dbg> nrf9160_gps.print_satellite_stats: Tracking: lat = 0 long= 0 pdop: 100 hdop: 100
[00:04:30.137,268] <dbg> nrf9160_gps.print_satellite_stats: Seconds since last fix 270
[00:04:30.145,874] <dbg> nrf9160_gps.print_satellite_stats: Tracking: 2 Using: 0 Unhealthy: 0
[00:04:40.367,218] <dbg> nrf9160_gps.print_satellite_stats: Tracking: lat = 0 long= 0 pdop: 100 hdop: 100
[00:04:40.377,532] <dbg> nrf9160_gps.print_satellite_stats: Seconds since last fix 280
[00:04:40.386,108] <dbg> nrf9160_gps.print_satellite_stats: Tracking: 2 Using: 0 Unhealthy: 0
[00:04:50.607,452] <dbg> nrf9160_gps.print_satellite_stats: Tracking: lat = 0 long= 0 pdop: 100 hdop: 100
[00:04:50.617,736] <dbg> nrf9160_gps.print_satellite_stats: Seconds since last fix 290
[00:04:50.626,342] <dbg> nrf9160_gps.print_satellite_stats: Tracking: 3 Using: 0 Unhealthy: 0
[00:05:00.847,686] <dbg> nrf9160_gps.gps_thread: Waiting for time window to operate
[00:05:00.856,018] <inf> asset_tracker: GPS_EVT_OPERATION_BLOCKED
[00:05:33.570,159] <dbg> nrf9160_gps.gps_thread: GPS has time window to operate
[00:05:33.578,063] <inf> asset_tracker: GPS_EVT_OPERATION_UNBLOCKED
[00:05:34.570,190] <dbg> nrf9160_gps.gps_thread: Waiting for time window to operate
[00:05:34.578,491] <inf> asset_tracker: GPS_EVT_OPERATION_BLOCKED
%CESQ: 41,2,7,1

Related