removing location services

I have a custom nRF9160 application running based on asset_tracker_v2. It is working perfectly but I am seeing location error messages. The nRF9160 we have does not have GPS capability. I wanted to remove all references to GPS or location. I thought I did that in the prj.conf (see below) but I still see the message shown below. what am I doing wrong. What do I need to do to remove this message. It does not seem to affect operation. I am publishing data to AWS with no problems and the cod is running fine except for these occasional error messages.

[00:01:13.294,464] <wrn> location: Modem's system or functional mode doesn't allow GNSS usage
[00:01:13.294,799] <err> location: Failed to configure GNSS

in prj.conf

# Location related configuration
#CONFIG_LOCATION=y
CONFIG_LOCATION=n
#CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_FIRST_GNSS=y
CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_FIRST_GNSS=n
#CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_SECOND_CELLULAR=y
CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_SECOND_CELLULAR=n
#CONFIG_LOCATION_REQUEST_DEFAULT_GNSS_TIMEOUT=90000
CONFIG_LOCATION_REQUEST_DEFAULT_GNSS_TIMEOUT=180000
CONFIG_LOCATION_DATA_DETAILS=y
#CONFIG_LOCATION_LOG_LEVEL_WRN=y
CONFIG_LOCATION_LOG_LEVEL_WRN=n

Parents
  • Hi, 
    Please double check if the configurations you made are used. Most of what you set (except for GNSS_TIMEOUT)  is actually not reflected in the .config file. 
    Please check the log to find something like " set to n but get the value y" or something like that. 
    One trick to check if the configuration file is used (in case it's not prj.conf) is to type some dummy text and see if the build failed. 

    You can send us the project so we can have a look.  

Reply
  • Hi, 
    Please double check if the configurations you made are used. Most of what you set (except for GNSS_TIMEOUT)  is actually not reflected in the .config file. 
    Please check the log to find something like " set to n but get the value y" or something like that. 
    One trick to check if the configuration file is used (in case it's not prj.conf) is to type some dummy text and see if the build failed. 

    You can send us the project so we can have a look.  

Children
No Data
Related