<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Location API without Cloud Dependencies (GNSS Only)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83346/location-api-without-cloud-dependencies-gnss-only</link><description>I am developing a solution using the NRF9160. The device is successfully reporting to my server using a blend of the Location and HTTPS samples. I would like to operate under GNSS only (no multicell) but I am unable to disable NRF Cloud or JWT by setting</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Jan 2022 22:31:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83346/location-api-without-cloud-dependencies-gnss-only" /><item><title>RE: Location API without Cloud Dependencies (GNSS Only)</title><link>https://devzone.nordicsemi.com/thread/346771?ContentTypeID=1</link><pubDate>Fri, 07 Jan 2022 22:31:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98342b15-2544-4fc2-8b78-f5a0decd6059</guid><dc:creator>kingston</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/charlie"&gt;Charlie&lt;/a&gt;thanks for this. I was able to verify operation on my end as well.&amp;nbsp; It looks like the key option that I missed in my config was&amp;nbsp;&lt;a class="reference external" title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/CONFIG_LOCATION_METHOD_CELLULAR.html#std-kconfig-CONFIG_LOCATION_METHOD_CELLULAR"&gt;&lt;code class="xref std std-kconfig docutils literal notranslate"&gt;&lt;span class="pre"&gt;CONFIG_LOCATION_METHOD_CELLULAR&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;=n , I made the mistake of assuming if I didn&amp;#39;t call it that the default was n.&amp;nbsp; Also noticed that I needed to leave in at least REST and JWT to satisfy the library.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The rest of my code was the same as yours save for a few small&amp;nbsp;differences from our library versions.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Up and running with a successful test! Thanks so much, I now have a PSM warning but I think that&amp;#39;s from the long wait.&amp;nbsp; If I can&amp;#39;t run it down I&amp;#39;ll start a different ticket.&amp;nbsp; I&amp;#39;ll accept this answer and close out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Location API without Cloud Dependencies (GNSS Only)</title><link>https://devzone.nordicsemi.com/thread/346770?ContentTypeID=1</link><pubDate>Fri, 07 Jan 2022 21:41:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f65b88a-629b-43e9-80c2-5b81dfbf3301</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;I modified the original&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/samples/nrf9160/location/README.html"&gt;nRF9160: Location&lt;/a&gt;&lt;span&gt;&amp;nbsp;sample to make it only request GNSS without A-GPS every 3 minutes. You can compare prj.conf and main.c with original files to find the differences.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ncs180_5F00_nrf9160_5F00_location_5F00_gnss_5F00_without_5F00_agps.zip"&gt;devzone.nordicsemi.com/.../ncs180_5F00_nrf9160_5F00_location_5F00_gnss_5F00_without_5F00_agps.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Location API without Cloud Dependencies (GNSS Only)</title><link>https://devzone.nordicsemi.com/thread/346740?ContentTypeID=1</link><pubDate>Fri, 07 Jan 2022 15:28:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:607faaad-2b5c-4f82-814d-f73b4e16a759</guid><dc:creator>kingston</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/charlie"&gt;Charlie&lt;/a&gt;&amp;nbsp;I just tested a location sample directly from Github, sdk-nrf-main version 1.8.99, the&amp;nbsp;C:\sdk-nrf-main\samples\nrf9160\location sample directory is the one I am using.&amp;nbsp; Within that file the unmodified .prj file contains the contents below.&amp;nbsp; It includes, Cloud, Rest, JWT, and Multicell by default.&amp;nbsp; When I try to set those to &amp;quot;n&amp;quot;, I get the error.&amp;nbsp; I&amp;#39;d be glad to attach the zip of the sample project but I couldn&amp;#39;t see a way to post it to my response.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;#&lt;br /&gt;# Copyright (c) 2021 Nordic Semiconductor ASA&lt;br /&gt;#&lt;br /&gt;# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause&lt;br /&gt;#&lt;/p&gt;
&lt;p&gt;# General config&lt;br /&gt;CONFIG_FPU=y&lt;br /&gt;CONFIG_NEWLIB_LIBC=y&lt;br /&gt;CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y&lt;br /&gt;CONFIG_NRF_MODEM_LIB=y&lt;/p&gt;
&lt;p&gt;# Heap and stacks&lt;br /&gt;CONFIG_MAIN_STACK_SIZE=2048&lt;br /&gt;# Extended memory heap size needed for encoding REST messages to JSON&lt;br /&gt;CONFIG_HEAP_MEM_POOL_SIZE=8192&lt;br /&gt;CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=1536&lt;/p&gt;
&lt;p&gt;# Location sample&lt;br /&gt;CONFIG_LOCATION=y&lt;br /&gt;#CONFIG_LOCATION_SAMPLE_GNSS_ANTENNA_EXTERNAL=y&lt;/p&gt;
&lt;p&gt;# Logging&lt;br /&gt;CONFIG_LOG=y&lt;br /&gt;CONFIG_LOG_MODE_IMMEDIATE=y&lt;/p&gt;
&lt;p&gt;# Network&lt;br /&gt;CONFIG_NETWORKING=y&lt;br /&gt;CONFIG_NET_NATIVE=n&lt;br /&gt;CONFIG_NET_SOCKETS=y&lt;br /&gt;CONFIG_NET_SOCKETS_OFFLOAD=y&lt;/p&gt;
&lt;p&gt;# LTE link control&lt;br /&gt;CONFIG_LTE_LINK_CONTROL=y&lt;br /&gt;CONFIG_LTE_NETWORK_MODE_LTE_M_GPS=y&lt;br /&gt;CONFIG_LTE_AUTO_INIT_AND_CONNECT=n&lt;br /&gt;CONFIG_LTE_EDRX_REQ=y&lt;br /&gt;# Request PSM active time of 8 seconds.&lt;br /&gt;CONFIG_LTE_PSM_REQ_RAT=&amp;quot;00000100&amp;quot;&lt;/p&gt;
&lt;p&gt;# nRF Cloud (for A-GPS and cell location)&lt;br /&gt;CONFIG_NRF_CLOUD_REST=y&lt;br /&gt;CONFIG_NRF_CLOUD_AGPS=y&lt;br /&gt;CONFIG_MODEM_INFO=y # required by CONFIG_NRF_CLOUD_AGPS&lt;br /&gt;CONFIG_MODEM_INFO_ADD_NETWORK=y # required by CONFIG_NRF_CLOUD_AGPS&lt;/p&gt;
&lt;p&gt;# Library that maintains the current date time UTC for A-GPS and P-GPS purposes&lt;br /&gt;CONFIG_DATE_TIME=y&lt;/p&gt;
&lt;p&gt;# Modem JWT&lt;br /&gt;CONFIG_MODEM_JWT=y&lt;/p&gt;
&lt;p&gt;# Multicell location service selection&lt;br /&gt;CONFIG_MULTICELL_LOCATION_SERVICE_NRF_CLOUD=y&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Location API without Cloud Dependencies (GNSS Only)</title><link>https://devzone.nordicsemi.com/thread/346699?ContentTypeID=1</link><pubDate>Fri, 07 Jan 2022 12:31:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d0e1574-857b-418d-89c8-5ac26b1503a4</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Multicell is a Cellular location method option and it should not have effects on AGPS which is a GNSS method option.&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;quot;[00:00:12.285,034] &amp;lt;err&amp;gt; location: nRF Cloud A-GPS request failed, error: -77&amp;quot; message is from the source code&amp;nbsp;nrf\lib\location\method_gnss.c lines 169-243, which is only used when&amp;nbsp;&amp;quot;CONFIG_NRF_CLOUD_AGPS=y&amp;quot;.&amp;nbsp;&lt;/span&gt;&lt;span&gt;I suspect the issue is not related to prj options. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We need to find a common ground for our discussion. Could you repeat this issue with the original &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/samples/nrf9160/location/README.html"&gt;nRF9160: Location&lt;/a&gt;&amp;nbsp;sample? or you can share a minimal sample of your codes that can repeat this issue. I believe it does not need LTE and HTTP connection.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Location API without Cloud Dependencies (GNSS Only)</title><link>https://devzone.nordicsemi.com/thread/346544?ContentTypeID=1</link><pubDate>Thu, 06 Jan 2022 16:09:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fca4654-7967-43c6-b31b-0f8c8c9f54cc</guid><dc:creator>kingston</dc:creator><description>&lt;p&gt;Thanks &lt;a href="https://devzone.nordicsemi.com/members/charlie"&gt;Charlie&lt;/a&gt; I tried setting &lt;span&gt;CONFIG_NRF_CLOUD_AGPS and REST to n,&amp;nbsp;but&lt;/span&gt;&amp;nbsp;it still posts the message. Digging a little deeper it appears that the error is tied to the multicell dependency.&amp;nbsp; When I set&amp;nbsp;CONFIG_MULTICELL_LOCATION_SERVICE_NRF_CLOUD=n i get a build error stating &amp;quot;At least one location service must be enabled&amp;quot;&amp;nbsp; So, it appears that the location lib is requiring multicell, which requires a cloud service...i think.&amp;nbsp; What is the right way to look at the available .prj options for a lib?&amp;nbsp; It&amp;#39;s possible I am missing an option to prevent location from including multicell.&amp;nbsp; I hate to waste your time asking questions if I can learn where to look.&amp;nbsp; Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Location API without Cloud Dependencies (GNSS Only)</title><link>https://devzone.nordicsemi.com/thread/346517?ContentTypeID=1</link><pubDate>Thu, 06 Jan 2022 14:28:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1dd21ab-8636-452c-9f5c-aaa196aaf6bc</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Devid,&lt;/p&gt;
&lt;p&gt;Thanks for your explanation. Do you have set &amp;quot;&lt;span&gt;CONFIG_NRF_CLOUD_AGPS&lt;/span&gt;&lt;span&gt;=y&amp;quot; configuration?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I checked that source code it seems the error will happen when you have it set.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Location API without Cloud Dependencies (GNSS Only)</title><link>https://devzone.nordicsemi.com/thread/346280?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 16:16:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b99d8b17-fa7c-4f86-b146-19988f46d524</guid><dc:creator>kingston</dc:creator><description>&lt;p&gt;As a follow up, just wanted to note that the device does proceed past the error and continues to get a fix.&amp;nbsp; I was just interested if there is a configuration change I can make to suppress the AGPS request.&amp;nbsp; Looking at the underlying documentation for GNSS API I didn&amp;#39;t see an option for disabling AGPS. the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrfxlib/nrf_modem/doc/gnss_interface.html#gnss-interface"&gt;developer.nordicsemi.com/.../gnss_interface.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Location API without Cloud Dependencies (GNSS Only)</title><link>https://devzone.nordicsemi.com/thread/346255?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 15:03:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba1a0768-65cc-4544-97bb-4d3cbf9fb00e</guid><dc:creator>kingston</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/charlie"&gt;Charlie&lt;/a&gt; The Location sample I was referring to is the &amp;quot;location&amp;quot; sample located in&amp;nbsp;nrf\samples\nrf9160\location, it is based on the location library from&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/libraries/modem/location.html#location"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/libraries/modem/location.html#location&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Even though I have not configured the use of AGPS, the system appears to still try to use it because I see this error on my serial term with the 9160, &amp;quot;[00:00:12.285,034] &amp;lt;err&amp;gt; location: nRF Cloud A-GPS request failed, error: -77&amp;quot;&amp;nbsp; I have provisioned the device with the credentials for my server, so I&amp;#39;m not surprised that AGPS would fail, but I&amp;#39;m confused why its still trying to use it since I&amp;#39;m never requesting AGPS and only request GNSS only.&lt;/p&gt;
&lt;p&gt;I have tested and used the GNSS sample you referred to in the past, that&amp;#39;s what I meant when by, &amp;quot;&lt;span&gt;When I test using the GNSS sample I acquire a fix faster than when I use the Location sample with GNSS only&amp;quot;.&amp;nbsp; Apologies for the confusion in naming.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Location API without Cloud Dependencies (GNSS Only)</title><link>https://devzone.nordicsemi.com/thread/346188?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 12:51:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5595cbbf-5ad5-426e-b613-79d532bee5fc</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;I am not sure which &amp;quot;&lt;span&gt;Location example&lt;/span&gt;&amp;quot; you used on your application now. The official &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/samples/nrf9160/gnss/README.html"&gt;nRF9160: GNSS sample&lt;/a&gt;&amp;nbsp;on NCS1.8.0 uses only GNSS by default, you can test and refer to it for your application.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>