<?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>Using GPS with SUPL sample in Asset Tracker application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68900/using-gps-with-supl-sample-in-asset-tracker-application</link><description>I&amp;#39;m assuming AGPS in the Asset Tracker was designed to use nrf cloud. I don&amp;#39;t know if that will be suitable for production deployment at the moment. The GPS with SUPL sample seems to work pretty well, so I&amp;#39;m trying to use that code in the Asset Tracker</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Dec 2020 09:06:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68900/using-gps-with-supl-sample-in-asset-tracker-application" /><item><title>RE: Using GPS with SUPL sample in Asset Tracker application</title><link>https://devzone.nordicsemi.com/thread/283003?ContentTypeID=1</link><pubDate>Thu, 03 Dec 2020 09:06:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd669a59-4b47-47a4-b61e-74a78615f2f3</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again!&lt;br /&gt;&lt;br /&gt;Got from the developers that if you want to test without nRF Cloud, just comment out the cloud stuff, call the relevant SUPL functions and start GPS right after.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using GPS with SUPL sample in Asset Tracker application</title><link>https://devzone.nordicsemi.com/thread/282991?ContentTypeID=1</link><pubDate>Thu, 03 Dec 2020 08:42:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4ff25b2-87ae-4235-bee5-f64c1fba4f70</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi!&lt;br /&gt;&lt;br /&gt;I did indeed use the DK (v8.5.0) and saw the same behavior as you did for your DK. As mentioned the sample communicates with nRF Cloud for other purposes(control and location upload) so the device will have to connect to the cloud service. Have you made sure the custom board have the correct credentials and are registered for use with nRF Cloud?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using GPS with SUPL sample in Asset Tracker application</title><link>https://devzone.nordicsemi.com/thread/282964?ContentTypeID=1</link><pubDate>Thu, 03 Dec 2020 00:45:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74517f51-d2de-4277-8a6f-31600fa7c637</guid><dc:creator>spline_pete</dc:creator><description>&lt;p&gt;I tried the AGPS sample configured for SUPL with a DK board.&amp;nbsp; See attached log.&amp;nbsp; It eventually gets a fix, but if you compare where my custom board stops vs the DK,&amp;nbsp;it suggests that it&amp;#39;s being blocked on cloud calls.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/agps_5F00_dk_5F00_20201202_5F00_1734.txt"&gt;devzone.nordicsemi.com/.../agps_5F00_dk_5F00_20201202_5F00_1734.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using GPS with SUPL sample in Asset Tracker application</title><link>https://devzone.nordicsemi.com/thread/282893?ContentTypeID=1</link><pubDate>Wed, 02 Dec 2020 13:30:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3460a15-b2f6-4795-90f6-98342650238a</guid><dc:creator>spline_pete</dc:creator><description>&lt;p&gt;Can it show any debug info?&amp;nbsp; I don&amp;#39;t see any activity.&amp;nbsp; Does it do nothing until there&amp;#39;s a fix?&lt;/p&gt;
&lt;p&gt;Which board did you try it with?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using GPS with SUPL sample in Asset Tracker application</title><link>https://devzone.nordicsemi.com/thread/282842?ContentTypeID=1</link><pubDate>Wed, 02 Dec 2020 10:03:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9bc9994-2584-4065-a665-7b5bca4e4102</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi!&lt;br /&gt;&lt;br /&gt;When using SUPL the GPS backend handles the calls. Nothing changes in the actual sample. If you are talking about the &amp;quot;gps_process_agps_data&amp;quot; function that is called on a CLOUD_EVT_DATA_RECEIVED event then you will see that it&amp;#39;s implemented to do nothing if not using nRF Cloud AGPS.&lt;br /&gt;&lt;br /&gt; As the documentation states the sample communicates with the nRF Cloud for uploading data and controlling the device.&amp;nbsp; I did not try with your config, but got it working with the configs I referenced earlier. &lt;br /&gt;&lt;br /&gt;Did you try with the asset tracker?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using GPS with SUPL sample in Asset Tracker application</title><link>https://devzone.nordicsemi.com/thread/282771?ContentTypeID=1</link><pubDate>Wed, 02 Dec 2020 00:33:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a893b75f-f406-4b4d-ae33-d46940128b83</guid><dc:creator>spline_pete</dc:creator><description>&lt;p&gt;I looked through the AGPS sample.&amp;nbsp; I don&amp;#39;t see any conditionals to omit the nrf cloud calls from the build when using SUPL.&amp;nbsp; Here&amp;#39;s what I get after making those changes to prj.conf, along with these changes:&lt;/p&gt;
&lt;p&gt;CONFIG_NRF9160_GPS_SET_MAGPIO=n&lt;br /&gt;CONFIG_NRF9160_GPS_SET_COEX0=y&lt;br /&gt;CONFIG_NRF9160_GPS_COEX0_STRING=&amp;quot;AT%XCOEX0=1,1,1565,1586&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.4.0-ncs1  ***
I: A-GPS sample has started
I: Connecting to LTE network. This may take minutes.
I: PSM mode requested
+CEREG: 2,&amp;quot;150D&amp;quot;,&amp;quot;00526D02&amp;quot;,7,0,0,&amp;quot;11100000&amp;quot;,&amp;quot;11100000&amp;quot;
+CSCON: 1
+CEREG: 1,&amp;quot;150D&amp;quot;,&amp;quot;00526D02&amp;quot;,7,,,&amp;quot;00000010&amp;quot;,&amp;quot;00011111&amp;quot;
I: Connected to LTE network
D: COEX0 set: AT%XCOEX0=1,1,1565,1586
D: GPS socket created, fd: 1232491587
I: CLOUD_EVT_CONNECTING
I: CLOUD_EVT_CONNECTING
+CSCON: 0
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using GPS with SUPL sample in Asset Tracker application</title><link>https://devzone.nordicsemi.com/thread/282721?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 15:17:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:316caa0f-8694-4864-9f0a-5d3682bd7c71</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Great! Please report back whether it works for you or not.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using GPS with SUPL sample in Asset Tracker application</title><link>https://devzone.nordicsemi.com/thread/282678?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 13:24:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb601260-2013-4d9a-9048-396798260345</guid><dc:creator>spline_pete</dc:creator><description>&lt;p&gt;Ok, I&amp;#39;ll try it.&lt;br /&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using GPS with SUPL sample in Asset Tracker application</title><link>https://devzone.nordicsemi.com/thread/282655?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 12:31:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce6ed035-63d9-4031-adf4-20e7d664fc1c</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again!&lt;br /&gt;&lt;br /&gt;Got back from the developers that it should be sufficient to add the following configs to prj.conf in the asset_tracker:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NRF_CLOUD_AGPS=n
CONFIG_AGPS_SRC_SUPL=y&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;The required functions for SUPL will be setup &amp;quot;behind the scenes&amp;quot;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using GPS with SUPL sample in Asset Tracker application</title><link>https://devzone.nordicsemi.com/thread/282643?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 12:00:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5481fa28-b138-44dc-b199-ade291923567</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi, Pete!&lt;br /&gt;&lt;br /&gt;Have you looked at the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/agps/README.html"&gt;agps sample&lt;/a&gt;? It should show how you can use and external SUPL source for the aGPS. From what I can see the GPS driver is enabled to use aGPS(and SUPL) when configured to do so.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>