NRF9160 gnss without a-gps on the Asset-trackerV2

Hi

Is there any way to use gnss without any cloud assistance on the asset-tracker app. I set up my asset tracker app on the aws cloud and currently, I don't have a chance to get an agps assistance. I tried to turn off nrf-agps in prj.conf but it did not work for me. Here is my prj.conf.

even I tried with external antenna but it also didn't work.

#
# Copyright (c) 2021 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

# General config
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_ASSERT=y
CONFIG_REBOOT=y
CONFIG_FPU=y

# Heap and stacks
CONFIG_HEAP_MEM_POOL_SIZE=32768
CONFIG_MAIN_STACK_SIZE=1408
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
CONFIG_HW_STACK_PROTECTION=y
# Increase AT monitor heap size to be able to fit both neighbor cell measurement
# and other AT notifications that may come in rapid succession.
CONFIG_AT_MONITOR_HEAP_SIZE=1024

# Logging
CONFIG_LOG=y
CONFIG_LOG_MODE_DEFERRED=y

# nRF modem library
CONFIG_NRF_MODEM_LIB=y

# AT Host library - Used to send AT commands directy from an UART terminal and to allow
#		    integration with nRF Connect for Desktop LTE Link monitor application.
CONFIG_AT_HOST_LIBRARY=y

# Network
CONFIG_NETWORKING=y
CONFIG_NET_NATIVE=n
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_OFFLOAD=y
CONFIG_NET_IPV6=y
CONFIG_NET_IPV4=y

# LTE link control
CONFIG_LTE_AUTO_INIT_AND_CONNECT=n
CONFIG_LTE_NETWORK_MODE_LTE_M_NBIOT_GPS=y
CONFIG_LTE_MODE_PREFERENCE_NBIOT=y
# PSM requested periodic TAU 8 hours
CONFIG_LTE_PSM_REQ_RPTAU="00101000"
# PSM requested active time 6 seconds
CONFIG_LTE_PSM_REQ_RAT="00000011"

# Modem info library to obtain information about network and device
CONFIG_MODEM_INFO=y

# Settings - Used to store real-time device configuration to flash.
CONFIG_SETTINGS=y
CONFIG_SETTINGS_FCB=y
CONFIG_FCB=y

# FOTA
CONFIG_FOTA_DOWNLOAD=y
CONFIG_DFU_TARGET=y
CONFIG_DOWNLOAD_CLIENT=y
CONFIG_DOWNLOAD_CLIENT_HTTP_FRAG_SIZE_1024=y
CONFIG_DOWNLOAD_CLIENT_STACK_SIZE=4096
CONFIG_DOWNLOAD_CLIENT_BUF_SIZE=2300
CONFIG_DOWNLOAD_CLIENT_MAX_HOSTNAME_SIZE=128

# Flash - Used in FOTA, settings and storage for P-GPS.
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_STREAM_FLASH=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y

# MCUBOOT
CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_IMG_MANAGER=y
CONFIG_MCUBOOT_IMG_MANAGER=y
CONFIG_IMG_ERASE_PROGRESSIVELY=y
CONFIG_SECURE_BOOT=y
CONFIG_BUILD_S1_VARIANT=y

# Watchdog
CONFIG_WATCHDOG_APPLICATION=n

# Application Event Manager
CONFIG_APP_EVENT_MANAGER=y
CONFIG_APP_EVENT_MANAGER_LOG_EVENT_TYPE=n

# cJSON - Used in cloud data encoding.
CONFIG_CJSON_LIB=y

# CAF - Common Application Framework
CONFIG_CAF=y
CONFIG_LED=y
CONFIG_CAF_LEDS=y
CONFIG_CAF_INIT_LOG_LED_READY_EVENTS=n
CONFIG_CAF_INIT_LOG_LED_EVENTS=n
CONFIG_CAF_INIT_LOG_MODULE_STATE_EVENTS=n

# Default cloud transport service
CONFIG_NRF_CLOUD_MQTT=n

CONFIG_I2C=y
CONFIG_SPI=y
CONFIG_EXTERNAL_SENSORS=y
CONFIG_SENSOR=y
CONFIG_ADXL362=n
# CONFIG_ADXL362_ACCEL_RANGE_8G=y
# CONFIG_ADXL362_ACCEL_ODR_12_5=y
# CONFIG_ADXL362_TRIGGER_NONE=y
CONFIG_DATA_ACCELEROMETER_BUFFER_STORE=y
CONFIG_EXTERNAL_SENSORS_ACTIVITY_DETECTION_AUTO=n
CONFIG_BME680=n
CONFIG_DATA_SEND_ALL_DEVICE_CONFIGURATIONS=y
CONFIG_GNSS_MODULE_PGPS_STORE_LOCATION=y
CONFIG_CBPRINTF_FP_SUPPORT=y
# CONFIG_ADXL362_ACTIVITY_THRESHOLD=100
CONFIG_DATA_MOVEMENT_RESOLUTION_SECONDS=60
CONFIG_DATA_MOVEMENT_TIMEOUT_SECONDS=30
CONFIG_DATA_SENSOR_BUFFER_COUNT=6
CONFIG_DATA_ACCELEROMETER_THRESHOLD=2
CONFIG_NRF_CLOUD_AGPS=n
CONFIG_NRF_CLOUD_PGPS=n
CONFIG_APP_REQUEST_GNSS_WAIT_FOR_AGPS=n

CONFIG_MODEM_SEND_ALL_SAMPLED_DATA=y

CONFIG_MODEM_AUTO_REQUEST_POWER_SAVING_FEATURES=n

CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
# CONFIG_MODEM_ANTENNA_GNSS_EXTERNAL=y
CONFIG_MODEM_ANTENNA_GNSS_ONBOARD=y
# CONFIG_AT_HOST_UART_0=y
CONFIG_NRF_CLOUD_AGPS=n
CONFIG_NRF_CLOUD_CELL_POS=n
CONFIG_APP_REQUEST_GNSS_ON_INITIAL_SAMPLING=y
CONFIG_APP_REQUEST_NEIGHBOR_CELLS_DATA=n
CONFIG_DATA_GNSS_TIMEOUT_SECONDS=60
# CONFIG_GNSS_MODULE_ANTENNA_ONBOARD=n
CONFIG_DATA_SAMPLE_NEIGHBOR_CELLS_DEFAULT=y
CONFIG_EXTERNAL_SENSORS_HALL_EFFECT=n
CONFIG_LOCATION_METHOD_CELLULAR=n 
CONFIG_MULTICELL_LOCATION_SERVICE_NRF_CLOUD=n
# CONFIG_YIC_GNSS=y

Parents Reply Children
  • Didrik, yes when I too disable NRF_CLOUD_APGS and NRF_CLOUD_PGPS, the app no longer requests a-gps data but also GNSS never gets a fixed value. that is the issue. it seems the gnss in the asset-tracker app does not work without agps assistance. I am asking here if there is a way to get gnss fix data or not

  • zsn said:
    Didrik, yes when I too disable NRF_CLOUD_APGS and NRF_CLOUD_PGPS, the app no longer requests a-gps data but also GNSS never gets a fixed value.

    Thanks, that is what I wanted to know.

    Could you give some more details on how you are testing?

    Are you testing indoors or outdoors? GPS satellites generally don't penetrate buildings, so if you are indoors, it is expected that you don't get a fix.

    What SIM card and network are you using? Do you get PSM or eDRX?

    How often are you sending data to/from the device?

  • Are you testing indoors or outdoors? GPS satellites generally don't penetrate buildings, so if you are indoors, it is expected that you don't get a fix.

    I did it outdoor and it was clear air.

    What SIM card and network are you using?

    Can you please elaborate SIM card, and for what reason a sim card is important? The network I am working on is Vodofon - NB-IOT in Ireland. 

    Do you get PSM or eDRX?

    Well, how can check if I get PSM or eDRX or not? I tried to disable PSM by using this config in prj.config

    CONFIG_MODEM_AUTO_REQUEST_POWER_SAVING_FEATURES

    and also I used these pieces of codes in gnss_module.c file to disable psm.

    /* When GNSS is used in single fix mode, it needs to be stopped before it can be
    	 * started again.
    	 */
    	(void)nrf_modem_gnss_stop();
    
    	uint8_t power_mode = NRF_MODEM_GNSS_PSM_DISABLED;
    	if (nrf_modem_gnss_power_mode_set(power_mode) != 0) 
    	{
    		LOG_ERR("Failed to set GNSS power saving mode");
    		return ;
    	}
    	/* Configure GNSS for single fix mode. */
    	err = nrf_modem_gnss_fix_interval_set(0);
    	if (err) {
    		LOG_WRN("Failed to set GNSS fix interval, error: %d", err);
    		return;
    	}
    
    	err = nrf_modem_gnss_fix_retry_set(gnss_timeout);
    	if (err) {
    		LOG_WRN("Failed to set GNSS timeout, error: %d", err);
    		return;
    	}
    
    	if (IS_ENABLED(CONFIG_GNSS_MODULE_NMEA)) {
    		err = nrf_modem_gnss_nmea_mask_set(NRF_MODEM_GNSS_NMEA_GGA_MASK);
    		if (err) {
    			LOG_ERR("Failed to set GNSS NMEA mask, error %d", err);
    			return;
    		}
    	}

    How often are you sending data to/from the device?

    well, I checked this point and the first data is sent 5 min later after turning on the device. then data is sent in 2 min intervals.

  • zsn said:
    Can you please elaborate SIM card, and for what reason a sim card is important? The network I am working on is Vodofon - NB-IOT in Ireland. 

    Roaming SIM cards might not be granted PSM or eDRX by the network. As we need PSM or eDRX so the GNSS stack get runtime from the LTE stack, that can lead to no fixes.

    zsn said:
    I tried to disable PSM by using this config in prj.config

    You want PSM, so don't disable it.

    zsn said:
    how can check if I get PSM or eDRX or not?

    If you have debug logs enabled, you should see lines like this in the application logs:

    "PSM parameter update: TAU: %d, Active time: %d" (where the %d's are a number).

    If the active time is not -1, you have PSM.

    zsn said:
    then data is sent in 2 min intervals.

    2 minutes is quite frequent. It might take that long just for the device to enter PSM, leaving no time for the GNSS stack to run.

  • Hi Didrik,

    If the active time is not -1, you have PSM.

    Yes, active time seems to be not -1.

    here is my log output. I also set the GNSS timeout to 180 instead of 60. 

    2022-12-09T09:51:40.918Z DEBUG modem << *** Booting Zephyr OS build v3.1.99-ncs1  ***
    2022-12-09T09:51:40.938Z DEBUG modem << I: Starting bootloader
    2022-12-09T09:51:40.942Z DEBUG modem << I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    2022-12-09T09:51:40.945Z DEBUG modem << I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    2022-12-09T09:51:40.948Z DEBUG modem << I: Boot source: none
    2022-12-09T09:51:40.950Z DEBUG modem << I: Swap type: none
    2022-12-09T09:51:40.951Z DEBUG modem << I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    2022-12-09T09:51:40.953Z DEBUG modem << I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    2022-12-09T09:51:40.975Z DEBUG modem << I: Boot source: none
    2022-12-09T09:51:40.978Z DEBUG modem << I: Swap type: none
    2022-12-09T09:51:41.037Z DEBUG modem << I: Bootloader chainload address offset: 0x28000
    2022-12-09T09:51:41.040Z DEBUG modem << I: Jumping to the first image slot
    2022-12-09T09:51:41.798Z DEBUG modem << *** Booting Zephyr OS build v3.1.99-ncs1  ***
    2022-12-09T09:51:42.805Z DEBUG modem << [00:00:00.494,812] [0m<inf> app_event_manager: APP_EVT_START[0m
    2022-12-09T09:51:42.823Z DEBUG modem << [00:00:00.496,002] [0m<dbg> modem_module: state_set: State transition STATE_INIT --> STATE_DISCONNECTED[0m
    2022-12-09T09:51:42.825Z DEBUG modem << [00:00:00.496,063] [0m<inf> app_event_manager: MODEM_EVT_INITIALIZED[0m
    2022-12-09T09:51:42.829Z DEBUG modem << [00:00:00.518,157] [0m<dbg> modem_module: configure_low_power: PSM requested[0m
    2022-12-09T09:51:42.850Z DEBUG modem << [00:00:00.574,096] [0m<inf> app_event_manager: MODEM_EVT_LTE_CONNECTING[0m
    2022-12-09T09:51:42.853Z DEBUG modem << [00:00:00.575,347] [0m<dbg> modem_module: state_set: State transition STATE_DISCONNECTED --> STATE_CONNECTING[0m
    2022-12-09T09:51:43.852Z DEBUG modem << [00:00:01.541,534] [0m<inf> app_event_manager: DATA_EVT_CONFIG_INIT[0m
    2022-12-09T09:51:44.570Z DEBUG modem << %CESQ: 53,2,26,3
    2022-12-09T09:51:44.592Z DEBUG modem << +CEREG: 2,"2332","024FF21F",9
    2022-12-09T09:51:44.882Z DEBUG modem << +CSCON: 1
    2022-12-09T09:51:45.580Z DEBUG modem << [00:00:03.266,021] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -87[0m
    2022-12-09T09:51:45.606Z DEBUG modem << [00:00:03.269,470] [0m<dbg> modem_module: lte_evt_handler: LTE cell changed: Cell ID: ********, Tracking area: ****[0m
    2022-12-09T09:51:45.608Z DEBUG modem << [00:00:03.269,653] [0m<inf> app_event_manager: MODEM_EVT_LTE_CELL_UPDATE[0m
    2022-12-09T09:51:45.611Z DEBUG modem << [00:00:03.577,789] [0m<dbg> modem_module: lte_evt_handler: RRC mode: Connected[0m
    2022-12-09T09:51:46.313Z DEBUG modem << +CGEV: ME PDN ACT 0,0
    2022-12-09T09:51:46.319Z DEBUG modem << +CNEC_ESM: 50,0
    2022-12-09T09:51:46.324Z DEBUG modem << %MDMEV: SEARCH STATUS 2
    2022-12-09T09:51:46.342Z DEBUG modem << +CEREG: 5,"2332","024FF21F",9,,,"00000011","00101000"
    2022-12-09T09:51:46.372Z DEBUG modem << [00:00:05.009,216] [0m<dbg> modem_module: pdn_event_handler: PDN_EVENT_ACTIVATED[0m
    2022-12-09T09:51:46.374Z DEBUG modem << [00%XTIME: ,"22219090156440",
    2022-12-09T09:51:46.378Z DEBUG modem << :00:05.010,772] [1;33m<wrn> modem_module: Event: PDP context 0, PDN type IPv4 only allowed[0m
    2022-12-09T09:51:46.397Z DEBUG modem << [00:00:05.012,969] [0m<dbg> modem_module: lte_evt_handler: Modem domain event, type: Search done[0m
    2022-12-09T09:51:46.399Z DEBUG modem << [00:00:05.018,249] [0m<dbg> modem_module: lte_evt_handler: Network registration status: Connected - roaming[0m
    2022-12-09T09:51:46.403Z DEBUG modem << [00:00:05.019,165] [0m<dbg> modem_module: lte_evt_handler: PSM parameter update: TAU: 28800, Active time: 6[0m
    2022-12-09T09:51:46.426Z DEBUG modem << [00:00:05.019,348] [0m<inf> app_event_manager: MODEM_EVT_LTE_CONNECTED[0m
    2022-12-09T09:51:46.429Z DEBUG modem << [00:00:05.019,989] [0m<inf> app_event_manager: MODEM_EVT_LTE_PSM_UPDATE[0m
    2022-12-09T09:51:46.432Z DEBUG modem << [00:00:05.021,209] [0m<dbg> modem_module: state_set: State transition STATE_CONNECTING --> STATE_CONNECTED[0m
    2022-12-09T09:51:46.435Z DEBUG modem << [00:00:05.021,362] [1;33m<wrn> cloud_module: Cloud connection establishment in progress[0m
    2022-12-09T09:51:46.436Z DEBUG modem << [00:00:05.021,392] [1;33m<wrn> cloud_module: New connection attempt in 32 seconds if not successful[0m
    2022-12-09T09:51:46.437Z DEBUG modem << [00:00:05.021,545] [0m<inf> app_event_manager: CLOUD_EVT_CONNECTING[0m
    2022-12-09T09:51:46.439Z DEBUG modem << [00:00:05.033,416] [0m<inf> app_event_manager: DATA_EVT_DATE_TIME_OBTAINED[0m
    2022-12-09T09:51:48.510Z DEBUG modem << %CESQ: 52,2,31,4
    2022-12-09T09:51:49.520Z DEBUG modem << [00:00:07.206,115] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -88[0m
    2022-12-09T09:51:52.122Z DEBUG modem << %CESQ: 51,2,26,3
    2022-12-09T09:51:53.132Z DEBUG modem << [00:00:10.818,206] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -89[0m
    2022-12-09T09:51:58.763Z DEBUG modem << [00:00:16.485,382] [0m<inf> app_event_manager: CLOUD_EVT_CONFIG_RECEIVED[0m
    2022-12-09T09:51:58.783Z DEBUG modem << [00:00:16.491,119] [1;33m<wrn> data_module: New GNSS timeout: 180[0m
    2022-12-09T09:51:58.786Z DEBUG modem << [00:00:16.492,553] [0m<inf> app_event_manager: DATA_EVT_CONFIG_READY[0m
    2022-12-09T09:51:58.789Z DEBUG modem << [00:00:16.495,361] [0m<inf> app_event_manager: DATA_EVT_CONFIG_SEND[0m
    2022-12-09T09:51:58.815Z DEBUG modem << [00:00:16.496,215] [0m<inf> app_event_manager: CLOUD_EVT_DATA_SEND_QOS[0m
    2022-12-09T09:51:58.817Z DEBUG modem << [00:00:17.408,996] [0m<inf> app_event_manager: CLOUD_EVT_CONNECTED[0m
    2022-12-09T09:51:58.819Z DEBUG modem << [00:00:17.410,217] [0m<inf> app_event_manager: APP_EVT_DATA_GET - Requested data types (MOD_DYN, BAT, ENV, MOD_STAT, NEIGHBOR_CELLS, GNSS)[0m
    2022-12-09T09:51:58.821Z DEBUG modem << [00:00:17.415,588] [0m<inf> app_event_manager: GNSS_EVT_ACTIVE[0m
    2022-12-09T09:51:58.844Z DEBUG modem << [00:00:17.416,564] [0m<inf> app_event_manager: GNSS_EVT_AGPS_NEEDED[0m
    2022-12-09T09:51:58.847Z DEBUG modem << [00:00:17.417,388] [0m<inf> app_event_manager: SENSOR_EVT_ENVIRONMENTAL_NOT_SUPPORTED[0m
    2022-12-09T09:51:58.851Z DEBUG modem << [00:00:17.451,568] [0m<inf> app_event_manager: MODEM_EVT_MODEM_STATIC_DATA_READY[0m
    2022-12-09T09:51:58.912Z DEBUG modem << %NCELLMEAS: 0,"024FF21F","27201","2332",16,6354,87,51,28,17015,17009
    2022-12-09T09:51:59.877Z DEBUG modem << [00:00:17.566,406] [0m<inf> app_event_manager: MODEM_EVT_MODEM_DYNAMIC_DATA_READY[0m
    2022-12-09T09:51:59.901Z DEBUG modem << [00:00:17.600,250] [0m<inf> app_event_manager: MODEM_EVT_BATTERY_DATA_READY[0m
    2022-12-09T09:51:59.926Z DEBUG modem << [00:00:17.608,856] [0m<dbg> modem_module: lte_evt_handler: Neighbor cell measurements received[0m
    2022-12-09T09:51:59.928Z DEBUG modem << [00:00:17.609,008] [0m<inf> app_event_manager: MODEM_EVT_NEIGHBOR_CELLS_DATA_READY[0m
    2022-12-09T09:52:02.967Z DEBUG modem << %CESQ: 51,2,31,4
    2022-12-09T09:52:03.977Z DEBUG modem << [00:00:21.663,574] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -89[0m
    2022-12-09T09:52:04.846Z DEBUG modem << +CSCON: 0
    2022-12-09T09:52:05.853Z DEBUG modem << [00:00:23.542,205] [0m<dbg> modem_module: lte_evt_handler: RRC mode: Idle[0m
    2022-12-09T09:52:17.368Z DEBUG modem << %CESQ: 50,2,24,3
    2022-12-09T09:52:18.378Z DEBUG modem << [00:00:36.064,941] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -90[0m
    2022-12-09T09:53:58.211Z DEBUG modem << %NCELLMEAS: 0,"024FF21F","27201","2332",65535,6354,87,54,26,136414,0
    2022-12-09T09:53:58.233Z DEBUG modem << %CESQ: 255,0,255,0
    2022-12-09T09:53:58.799Z DEBUG modem << [00:02:16.493,164] [0m<inf> app_event_manager: APP_EVT_DATA_GET_ALL[0m
    2022-12-09T09:53:58.825Z DEBUG modem << [00:02:16.493,835] [0m<inf> app_event_manager: APP_EVT_DATA_GET - Requested data types (MOD_DYN, BAT, ENV, NEIGHBOR_CELLS, GNSS)[0m
    2022-12-09T09:53:58.828Z DEBUG modem << [00:02:16.493,896] [1;33m<wrn> gnss_module: GNSS search already active and will not be restarted[0m
    2022-12-09T09:53:58.857Z DEBUG modem << [00:02:16.493,896] [1;33m<wrn> gnss_module: Try setting a sample/publication interval greater[0m
    2022-12-09T09:53:58.885Z DEBUG modem << [00:02:16.493,927] [1;33m<wrn> gnss_module: than the GNSS search timeout.[0m
    2022-12-09T09:53:58.889Z DEBUG modem << [00:02:16.494,812] [0m<inf> app_event_manager: SENSOR_EVT_ENVIRONMENTAL_NOT_SUPPORTED[0m
    2022-12-09T09:53:58.891Z DEBUG modem << [00:02:16.507,476] [0m<inf> app_event_manager: MODEM_EVT_MODEM_DYNAMIC_DATA_READY[0m
    2022-12-09T09:53:58.895Z DEBUG modem << [00:02:16.520,721] [0m<inf> app_event_manager: MODEM_EVT_BATTERY_DATA_READY[0m
    2022-12-09T09:53:58.912Z DEBUG modem << [00:02:16.912,567] [0m<dbg> modem_module: lte_evt_handler: Neighbor cell measurements received[0m
    2022-12-09T09:53:58.915Z DEBUG modem << [00:02:16.914,611] [0m<inf> app_event_manager: MODEM_EVT_NEIGHBOR_CELLS_DATA_READY[0m
    2022-12-09T09:55:05.645Z DEBUG modem << neighboorcell
    2022-12-09T09:55:05.991Z DEBUG modem << %CESQ: 51,2,24,3
    2022-12-09T09:55:06.006Z DEBUG modem << %MDMEV: SEARCH STATUS 2
    2022-12-09T09:55:06.517Z DEBUG modem << %CESQ: 52,2,30,4
    2022-12-09T09:55:06.648Z DEBUG modem << [00:03:24.345,123] [0m<inf> app_event_manager: GNSS_EVT_TIMEOUT[0m
    2022-12-09T09:55:06.662Z DEBUG modem << [00:03:24.345,581] [0m<inf> app_event_manager: GNSS_EVT_INACTIVE[0m
    2022-12-09T09:55:06.665Z DEBUG modem << [00:03:24.346,679] [0m<inf> app_event_manager: DATA_EVT_DATA_READY[0m
    2022-12-09T09:55:06.668Z DEBUG modem << [00:03:24.367,187] [0m<inf> app_event_manager: DATA_EVT_DATA_SEND_BATCH[0m
    2022-12-09T09:55:06.674Z DEBUG modem << [00:03:24.368,499] [0m<inf> app_event_manager: CLOUD_EVT_DATA_SEND_QOS[0m
    2022-12-09T09:55:06.690Z DEBUG modem << [00:03:24.693,603] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -89[0m
    2022-12-09T09:55:06.706Z DEBUG modem << [00:03:24.695,800] [0m<dbg> modem_module: lte_evt_handler: Modem domain event, type: Search done[0m
    2022-12-09T09:55:06.722Z DEBUG modem << [00:03:25.220,458] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -88[0m
    2022-12-09T09:55:06.801Z DEBUG modem << +CSCON: 1
    2022-12-09T09:55:07.808Z DEBUG modem << [00:03:25.504,333] [0m<dbg> modem_module: lte_evt_handler: RRC mode: Connected[0m
    2022-12-09T09:55:13.927Z DEBUG modem << +CSCON: 0
    2022-12-09T09:55:14.150Z DEBUG modem << %CESQ: 52,2,23,3
    2022-12-09T09:55:14.934Z DEBUG modem << [00:03:32.631,347] [0m<dbg> modem_module: lte_evt_handler: RRC mode: Idle[0m
    2022-12-09T09:55:14.953Z DEBUG modem << [00:03:32.853,393] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -88[0m
    2022-12-09T09:55:17.215Z DEBUG modem << %CESQ: 52,2,34,4
    2022-12-09T09:55:18.225Z DEBUG modem << [00:03:35.918,853] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -88[0m
    2022-12-09T09:55:19.787Z DEBUG modem << %CESQ: 53,2,22,3
    2022-12-09T09:55:19.929Z DEBUG modem << %CESQ: 255,0,255,0
    2022-12-09T09:55:20.797Z DEBUG modem << [00:03:38.490,905] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -87[0m
    2022-12-09T09:55:58.148Z DEBUG modem << %CESQ: 52,2,24,3
    2022-12-09T09:55:58.174Z DEBUG modem << %CESQ: 52,2,34,4
    2022-12-09T09:55:58.237Z DEBUG modem << %NCELLMEAS: 0,"024FF21F","27201","2332",65535,6354,87,55,27,256441,0
    2022-12-09T09:55:58.240Z DEBUG modem << %CESQ: 255,0,255,0
    2022-12-09T09:55:58.794Z DEBUG modem << [00:04:16.493,164] [0m<inf> app_event_manager: APP_EVT_DATA_GET_ALL[0m
    2022-12-09T09:55:58.808Z DEBUG modem << [00:04:16.493,835] [0m<inf> app_event_manager: APP_EVT_DATA_GET - Requested data types (MOD_DYN, BAT, ENV, NEIGHBOR_CELLS, GNSS)[0m
    2022-12-09T09:55:58.812Z DEBUG modem << [00:04:16.506,072] [0m<inf> app_event_manager: GNSS_EVT_ACTIVE[0m
    2022-12-09T09:55:58.827Z DEBUG modem << [00:04:16.507,293] [0m<inf> app_event_manager: SENSOR_EVT_ENVIRONMENTAL_NOT_SUPPORTED[0m
    2022-12-09T09:55:58.843Z DEBUG modem << [00:04:16.538,238] [0m<inf> app_event_manager: MODEM_EVT_MODEM_DYNAMIC_DATA_READY[0m
    2022-12-09T09:55:58.846Z DEBUG modem << [00:04:16.551,239] [0m<inf> app_event_manager: MODEM_EVT_BATTERY_DATA_READY[0m
    2022-12-09T09:55:58.848Z DEBUG modem << [00:04:16.853,424] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -88[0m
    2022-12-09T09:55:58.865Z DEBUG modem << [00:04:16.880,157] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -88[0m
    2022-12-09T09:55:58.870Z DEBUG modem << [00:04:16.943,572] [0m<dbg> modem_module: lte_evt_handler: Neighbor cell measurements received[0m
    2022-12-09T09:55:58.887Z DEBUG modem << [00:04:16.945,617] [0m<inf> app_event_manager: MODEM_EVT_NEIGHBOR_CELLS_DATA_READY[0m
    2022-12-09T09:57:58.147Z DEBUG modem << %CESQ: 52,2,22,3
    2022-12-09T09:57:58.209Z DEBUG modem << %NCELLMEAS: 0,"024FF21F","27201","2332",65535,6354,87,53,25,376414,0
    2022-12-09T09:57:58.212Z DEBUG modem << %CESQ: 255,0,255,0
    2022-12-09T09:57:58.219Z DEBUG modem << [00:06:16.493,164] [0m<inf> app_event_manager: APP_EVT_DATA_GET_ALL[0m
    2022-12-09T09:57:58.239Z DEBUG modem << [00:06:16.493,835] [0m<inf> app_event_manager: APP_EVT_DATA_GET - Requested data types (MOD_DYN, BAT, ENV, NEIGHBOR_CELLS, GNSS)[0m
    2022-12-09T09:57:58.242Z DEBUG modem << [00:06:16.493,896] [1;33m<wrn> gnss_module: GNSS search already active and will not be restarted[0m
    2022-12-09T09:57:58.249Z DEBUG modem << [00:06:16.493,896] [1;33m<wrn> gnss_module: Try setting a sample/publication interval greater[0m
    2022-12-09T09:57:58.277Z DEBUG modem << [00:06:16.493,927] [1;33m<wrn> gnss_module: than the GNSS search timeout.[0m
    2022-12-09T09:57:58.279Z DEBUG modem << [00:06:16.494,842] [0m<inf> app_event_manager: SENSOR_EVT_ENVIRONMENTAL_NOT_SUPPORTED[0m
    2022-12-09T09:57:58.283Z DEBUG modem << [00:06:16.507,202] [0m<inf> app_event_manager: MODEM_EVT_MODEM_DYNAMIC_DATA_READY[0m
    2022-12-09T09:57:58.284Z DEBUG modem << [00:06:16.520,080] [0m<inf> app_event_manager: MODEM_EVT_BATTERY_DATA_READY[0m
    2022-12-09T09:57:58.309Z DEBUG modem << [00:06:16.857,727] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -88[0m
    2022-12-09T09:57:58.312Z DEBUG modem << [00:06:16.920,410] [0m<dbg> modem_module: lte_evt_handler: Neighbor cell measurements received[0m
    2022-12-09T09:57:58.314Z DEBUG modem << [00:06:16.922,454] [0m<inf> app_event_manager: MODEM_EVT_NEIGHBOR_CELLS_DATA_READY[0m
    2022-12-09T09:58:58.585Z DEBUG modem << neighboorcell
    2022-12-09T09:58:58.948Z DEBUG modem << %CESQ: 52,2,23,3
    2022-12-09T09:58:58.970Z DEBUG modem << %MDMEV: SEARCH STATUS 2
    2022-12-09T09:58:59.475Z DEBUG modem << %CESQ: 53,2,30,4
    2022-12-09T09:58:59.587Z DEBUG modem << [00:07:17.293,426] [0m<inf> app_event_manager: GNSS_EVT_TIMEOUT[0m
    2022-12-09T09:58:59.607Z DEBUG modem << [00:07:17.293,914] [0m<inf> app_event_manager: GNSS_EVT_INACTIVE[0m
    2022-12-09T09:58:59.611Z DEBUG modem << [00:07:17.295,013] [0m<inf> app_event_manager: DATA_EVT_DATA_READY[0m
    2022-12-09T09:58:59.614Z DEBUG modem << [00:07:17.311,248] [0m<inf> app_event_manager: DATA_EVT_DATA_SEND_BATCH[0m
    2022-12-09T09:58:59.616Z DEBUG modem << [00:07:17.312,530] [0m<inf> app_event_manager: CLOUD_EVT_DATA_SEND_QOS[0m
    2022-12-09T09:58:59.640Z DEBUG modem << [00:07:17.661,102] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -88[0m
    2022-12-09T09:58:59.644Z DEBUG modem << [00:07:17.663,299] [0m<dbg> modem_module: lte_evt_handler: Modem domain event, type: Search done[0m
    2022-12-09T09:58:59.648Z DEBUG modem << [00:07:18.187,927] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -87[0m
    2022-12-09T09:58:59.774Z DEBUG modem << +CSCON: 1
    2022-12-09T09:59:00.781Z DEBUG modem << [00:07:18.486,816] [0m<dbg> modem_module: lte_evt_handler: RRC mode: Connected[0m
    2022-12-09T09:59:06.454Z DEBUG modem << +CSCON: 0
    2022-12-09T09:59:06.787Z DEBUG modem << %CESQ: 51,2,24,3
    2022-12-09T09:59:07.461Z DEBUG modem << [00:07:25.167,785] [0m<dbg> modem_module: lte_evt_handler: RRC mode: Idle[0m
    2022-12-09T09:59:07.481Z DEBUG modem << [00:07:25.500,854] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -89[0m
    2022-12-09T09:59:07.614Z DEBUG modem << %CESQ: 52,2,34,4
    2022-12-09T09:59:08.623Z DEBUG modem << [00:07:26.326,263] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -88[0m
    2022-12-09T09:59:10.171Z DEBUG modem << %CESQ: 53,2,17,2
    2022-12-09T09:59:11.181Z DEBUG modem << [00:07:28.884,338] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -87[0m
    2022-12-09T09:59:12.455Z DEBUG modem << %CESQ: 255,0,255,0
    2022-12-09T09:59:58.146Z DEBUG modem << %CESQ: 51,2,23,3
    2022-12-09T09:59:58.209Z DEBUG modem << %NCELLMEAS: 0,"024FF21F","27201","2332",65535,6354,87,52,22,496414,6354,89,44,6,0,0
    2022-12-09T09:59:58.227Z DEBUG modem << %CESQ: 255,0,255,0
    2022-12-09T09:59:58.784Z DEBUG modem << [00:08:16.493,164] [0m<inf> app_event_manager: APP_EVT_DATA_GET_ALL[0m
    2022-12-09T09:59:58.803Z DEBUG modem << [00:08:16.493,835] [0m<inf> app_event_manager: APP_EVT_DATA_GET - Requested data types (MOD_DYN, BAT, ENV, NEIGHBOR_CELLS, GNSS)[0m
    2022-12-09T09:59:58.806Z DEBUG modem << [00:08:16.506,103] [0m<inf> app_event_manager: GNSS_EVT_ACTIVE[0m
    2022-12-09T09:59:58.829Z DEBUG modem << [00:08:16.507,354] [0m<inf> app_event_manager: SENSOR_EVT_ENVIRONMENTAL_NOT_SUPPORTED[0m
    2022-12-09T09:59:58.832Z DEBUG modem << [00:08:16.538,238] [0m<inf> app_event_manager: MODEM_EVT_MODEM_DYNAMIC_DATA_READY[0m
    2022-12-09T09:59:58.837Z DEBUG modem << [00:08:16.551,116] [0m<inf> app_event_manager: MODEM_EVT_BATTERY_DATA_READY[0m
    2022-12-09T09:59:58.839Z DEBUG modem << [00:08:16.861,572] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -89[0m
    2022-12-09T09:59:58.864Z DEBUG modem << [00:08:16.924,682] [0m<dbg> modem_module: lte_evt_handler: Neighbor cell measurements received[0m
    2022-12-09T09:59:58.866Z DEBUG modem << [00:08:16.926,757] [0m<inf> app_event_manager: MODEM_EVT_NEIGHBOR_CELLS_DATA_READY[0m
    2022-12-09T10:01:58.145Z DEBUG modem << %CESQ: 50,2,23,3
    2022-12-09T10:01:58.208Z DEBUG modem << %NCELLMEAS: 0,"024FF21F","27201","2332",65535,6354,87,52,26,616414,6354,89,36,-6,0,0
    2022-12-09T10:01:58.211Z DEBUG modem << %CESQ: 255,0,255,0
    2022-12-09T10:01:58.218Z DEBUG modem << [00:10:16.493,164] [0m<inf> app_event_manager: APP_EVT_DATA_GET_ALL[0m
    2022-12-09T10:01:58.230Z DEBUG modem << [00:10:16.493,835] [0m<inf> app_event_manager: APP_EVT_DATA_GET - Requested data types (MOD_DYN, BAT, ENV, NEIGHBOR_CELLS, GNSS)[0m
    2022-12-09T10:01:58.239Z DEBUG modem << [00:10:16.493,896] [1;33m<wrn> gnss_module: GNSS search already active and will not be restarted[0m
    2022-12-09T10:01:58.248Z DEBUG modem << [00:10:16.493,896] [1;33m<wrn> gnss_module: Try setting a sample/publication interval greater[0m
    2022-12-09T10:01:58.255Z DEBUG modem << [00:10:16.493,927] [1;33m<wrn> gnss_module: than the GNSS search timeout.[0m
    2022-12-09T10:01:58.263Z DEBUG modem << [00:10:16.494,842] [0m<inf> app_event_manager: SENSOR_EVT_ENVIRONMENTAL_NOT_SUPPORTED[0m
    2022-12-09T10:01:58.271Z DEBUG modem << [00:10:16.506,988] [0m<inf> app_event_manager: MODEM_EVT_MODEM_DYNAMIC_DATA_READY[0m
    2022-12-09T10:01:58.278Z DEBUG modem << [00:10:16.519,500] [0m<inf> app_event_manager: MODEM_EVT_BATTERY_DATA_READY[0m
    2022-12-09T10:01:58.288Z DEBUG modem << [00:10:16.865,417] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -90[0m
    2022-12-09T10:01:58.297Z DEBUG modem << [00:10:16.929,382] [0m<dbg> modem_module: lte_evt_handler: Neighbor cell measurements received[0m
    2022-12-09T10:01:58.305Z DEBUG modem << [00:10:16.931,457] [0m<inf> app_event_manager: MODEM_EVT_NEIGHBOR_CELLS_DATA_READY[0m
    2022-12-09T10:02:58.562Z DEBUG modem << neighboorcell
    2022-12-09T10:02:58.946Z DEBUG modem << %CESQ: 51,2,24,3
    2022-12-09T10:02:58.953Z DEBUG modem << %MDMEV: SEARCH STATUS 2
    2022-12-09T10:02:59.564Z DEBUG modem << [00:11:17.280,426] [0m<inf> app_event_manager: GNSS_EVT_TIMEOUT[0m
    2022-12-09T10:02:59.570Z DEBUG modem << [00:11:17.280,883] [0m<inf> app_event_manager: GNSS_EVT_INACTIVE[0m
    2022-12-09T10:02:59.577Z DEBUG modem << [00:11:17.281,982] [0m<inf> app_event_manager: DATA_EVT_DATA_READY[0m
    2022-12-09T10:02:59.584Z DEBUG modem << [00:11:17.298,156] [0m<inf> app_event_manager: DATA_EVT_DATA_SEND_BATCH[0m
    2022-12-09T10:02:59.590Z DEBUG modem << [00:11:17.299,468] [0m<inf> app_event_manager: CLOUD_EVT_DATA_SEND_QOS[0m
    2022-12-09T10:02:59.601Z DEBUG modem << [00:11:17.668,792] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -89[0m
    2022-12-09T10:02:59.610Z DEBUG modem << [00:11:17.670,989] [0m<dbg> modem_module: lte_evt_handler: Modem domain event, type: Search done[0m
    2022-12-09T10:02:59.757Z DEBUG modem << +CSCON: 1
    2022-12-09T10:02:59.771Z DEBUG modem << %CESQ: 51,2,30,4
    2022-12-09T10:03:00.765Z DEBUG modem << [00:11:18.479,492] [0m<dbg> modem_module: lte_evt_handler: RRC mode: Connected[0m
    2022-12-09T10:03:00.775Z DEBUG modem << [00:11:18.493,652] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -89[0m
    2022-12-09T10:03:07.020Z DEBUG modem << +CSCON: 0
    2022-12-09T10:03:07.266Z DEBUG modem << %CESQ: 51,2,24,3
    2022-12-09T10:03:08.027Z DEBUG modem << [00:11:25.742,492] [0m<dbg> modem_module: lte_evt_handler: RRC mode: Idle[0m
    2022-12-09T10:03:08.037Z DEBUG modem << [00:11:25.988,555] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -89[0m
    2022-12-09T10:03:08.251Z DEBUG modem << %CESQ: 51,2,34,4
    2022-12-09T10:03:09.261Z DEBUG modem << [00:11:26.973,968] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -89[0m
    2022-12-09T10:03:10.812Z DEBUG modem << %CESQ: 52,2,19,2
    2022-12-09T10:03:11.822Z DEBUG modem << [00:11:29.535,034] [0m<dbg> modem_module: modem_rsrp_handler: Incoming RSRP status message, RSRP value is -88[0m
    2022-12-09T10:03:13.021Z DEBUG modem << %CESQ: 255,0,255,0

    2 minutes is quite frequent. It might take that long just for the device to enter PSM, leaving no time for the GNSS stack to run.

    Now currently I am investigating this point. I will extend this time for sure.

Related